diff options
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/auth/SetupAssistantScreen.js | 2 | ||||
-rw-r--r-- | src/containers/auth/SignupScreen.js | 2 | ||||
-rw-r--r-- | src/containers/layout/AppLayoutContainer.js | 4 | ||||
-rw-r--r-- | src/containers/settings/AccountScreen.js | 5 | ||||
-rw-r--r-- | src/containers/settings/EditServiceScreen.js | 4 | ||||
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 2 | ||||
-rw-r--r-- | src/containers/settings/EditUserScreen.js | 2 | ||||
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 10 |
8 files changed, 14 insertions, 17 deletions
diff --git a/src/containers/auth/SetupAssistantScreen.js b/src/containers/auth/SetupAssistantScreen.js index eaf3fda8a..d14085f63 100644 --- a/src/containers/auth/SetupAssistantScreen.js +++ b/src/containers/auth/SetupAssistantScreen.js | |||
@@ -102,7 +102,7 @@ export default @inject('stores', 'actions') @observer class SetupAssistantScreen | |||
102 | render() { | 102 | render() { |
103 | return ( | 103 | return ( |
104 | <SetupAssistant | 104 | <SetupAssistant |
105 | onSubmit={config => this.setupServices(config)} | 105 | onSubmit={(config) => this.setupServices(config)} |
106 | services={this.services} | 106 | services={this.services} |
107 | embed={false} | 107 | embed={false} |
108 | isSettingUpServices={this.state.isSettingUpServices} | 108 | isSettingUpServices={this.state.isSettingUpServices} |
diff --git a/src/containers/auth/SignupScreen.js b/src/containers/auth/SignupScreen.js index eeab63a0c..38c5dfb43 100644 --- a/src/containers/auth/SignupScreen.js +++ b/src/containers/auth/SignupScreen.js | |||
@@ -24,7 +24,7 @@ export default @inject('stores', 'actions') @observer class SignupScreen extends | |||
24 | 24 | ||
25 | return ( | 25 | return ( |
26 | <Signup | 26 | <Signup |
27 | onSubmit={values => this.onSignup(values)} | 27 | onSubmit={(values) => this.onSignup(values)} |
28 | isSubmitting={stores.user.signupRequest.isExecuting} | 28 | isSubmitting={stores.user.signupRequest.isExecuting} |
29 | loginRoute={stores.user.loginRoute} | 29 | loginRoute={stores.user.loginRoute} |
30 | changeServerRoute={stores.user.changeServerRoute} | 30 | changeServerRoute={stores.user.changeServerRoute} |
diff --git a/src/containers/layout/AppLayoutContainer.js b/src/containers/layout/AppLayoutContainer.js index 21be9d9d1..fff628946 100644 --- a/src/containers/layout/AppLayoutContainer.js +++ b/src/containers/layout/AppLayoutContainer.js | |||
@@ -92,8 +92,8 @@ export default @inject('stores', 'actions') @observer class AppLayoutContainer e | |||
92 | 92 | ||
93 | const workspacesDrawer = ( | 93 | const workspacesDrawer = ( |
94 | <WorkspaceDrawer | 94 | <WorkspaceDrawer |
95 | getServicesForWorkspace={workspace => ( | 95 | getServicesForWorkspace={(workspace) => ( |
96 | workspace ? workspaceStore.getWorkspaceServices(workspace).map(s => s.name) : services.all.map(s => s.name) | 96 | workspace ? workspaceStore.getWorkspaceServices(workspace).map((s) => s.name) : services.all.map((s) => s.name) |
97 | )} | 97 | )} |
98 | /> | 98 | /> |
99 | ); | 99 | ); |
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index 4ee932895..8d92b01be 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js | |||
@@ -46,10 +46,7 @@ class AccountScreen extends Component { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | render() { | 48 | render() { |
49 | const { | 49 | const { user, settings } = this.props.stores; |
50 | user, | ||
51 | settings, | ||
52 | } = this.props.stores; | ||
53 | const { user: userActions } = this.props.actions; | 50 | const { user: userActions } = this.props.actions; |
54 | 51 | ||
55 | const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; | 52 | const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; |
diff --git a/src/containers/settings/EditServiceScreen.js b/src/containers/settings/EditServiceScreen.js index 0fe84792f..c880e97ae 100644 --- a/src/containers/settings/EditServiceScreen.js +++ b/src/containers/settings/EditServiceScreen.js | |||
@@ -394,9 +394,9 @@ export default @inject('stores', 'actions') @observer class EditServiceScreen ex | |||
394 | status={services.actionStatus} | 394 | status={services.actionStatus} |
395 | isSaving={services.updateServiceRequest.isExecuting || services.createServiceRequest.isExecuting} | 395 | isSaving={services.updateServiceRequest.isExecuting || services.createServiceRequest.isExecuting} |
396 | isDeleting={services.deleteServiceRequest.isExecuting} | 396 | isDeleting={services.deleteServiceRequest.isExecuting} |
397 | onSubmit={d => this.onSubmit(d)} | 397 | onSubmit={(d) => this.onSubmit(d)} |
398 | onDelete={() => this.deleteService()} | 398 | onDelete={() => this.deleteService()} |
399 | openRecipeFile={file => this.openRecipeFile(file)} | 399 | openRecipeFile={(file) => this.openRecipeFile(file)} |
400 | isProxyFeatureEnabled={proxyFeature.isEnabled} | 400 | isProxyFeatureEnabled={proxyFeature.isEnabled} |
401 | /> | 401 | /> |
402 | </ErrorBoundary> | 402 | </ErrorBoundary> |
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 764078cb8..e0a648095 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -652,7 +652,7 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
652 | isUpdateAvailable={updateStatus === updateStatusTypes.AVAILABLE} | 652 | isUpdateAvailable={updateStatus === updateStatusTypes.AVAILABLE} |
653 | noUpdateAvailable={updateStatus === updateStatusTypes.NOT_AVAILABLE} | 653 | noUpdateAvailable={updateStatus === updateStatusTypes.NOT_AVAILABLE} |
654 | updateIsReadyToInstall={updateStatus === updateStatusTypes.DOWNLOADED} | 654 | updateIsReadyToInstall={updateStatus === updateStatusTypes.DOWNLOADED} |
655 | onSubmit={d => this.onSubmit(d)} | 655 | onSubmit={(d) => this.onSubmit(d)} |
656 | getCacheSize={() => app.cacheSize} | 656 | getCacheSize={() => app.cacheSize} |
657 | isClearingAllCache={isClearingAllCache} | 657 | isClearingAllCache={isClearingAllCache} |
658 | onClearAllCache={clearAllCache} | 658 | onClearAllCache={clearAllCache} |
diff --git a/src/containers/settings/EditUserScreen.js b/src/containers/settings/EditUserScreen.js index 8e93164de..820b5e4d3 100644 --- a/src/containers/settings/EditUserScreen.js +++ b/src/containers/settings/EditUserScreen.js | |||
@@ -141,7 +141,7 @@ export default @inject('stores', 'actions') @observer class EditUserScreen exten | |||
141 | status={user.actionStatus} | 141 | status={user.actionStatus} |
142 | form={form} | 142 | form={form} |
143 | isSaving={user.updateUserInfoRequest.isExecuting} | 143 | isSaving={user.updateUserInfoRequest.isExecuting} |
144 | onSubmit={d => this.onSubmit(d)} | 144 | onSubmit={(d) => this.onSubmit(d)} |
145 | /> | 145 | /> |
146 | </ErrorBoundary> | 146 | </ErrorBoundary> |
147 | ); | 147 | ); |
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index 9a16fd064..0d6506705 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -82,7 +82,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
82 | return recipes | 82 | return recipes |
83 | // Filter out duplicate recipes | 83 | // Filter out duplicate recipes |
84 | .filter((recipe, index, self) => { | 84 | .filter((recipe, index, self) => { |
85 | const ids = self.map(rec => rec.id); | 85 | const ids = self.map((rec) => rec.id); |
86 | return ids.indexOf(recipe.id) === index; | 86 | return ids.indexOf(recipe.id) === index; |
87 | 87 | ||
88 | // Sort alphabetically | 88 | // Sort alphabetically |
@@ -95,7 +95,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
95 | 95 | ||
96 | // Create an array of RecipePreviews from an array of recipe objects | 96 | // Create an array of RecipePreviews from an array of recipe objects |
97 | createPreviews(recipes) { | 97 | createPreviews(recipes) { |
98 | return recipes.map(recipe => new RecipePreview(recipe)); | 98 | return recipes.map((recipe) => new RecipePreview(recipe)); |
99 | } | 99 | } |
100 | 100 | ||
101 | resetSearch() { | 101 | resetSearch() { |
@@ -134,11 +134,11 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
134 | // All search recipes from local recipes | 134 | // All search recipes from local recipes |
135 | ...this.createPreviews( | 135 | ...this.createPreviews( |
136 | this.customRecipes | 136 | this.customRecipes |
137 | .filter(service => service.name.toLowerCase().includes(this.state.needle.toLowerCase())), | 137 | .filter((service) => service.name.toLowerCase().includes(this.state.needle.toLowerCase())), |
138 | ), | 138 | ), |
139 | ]) : recipeFilter; | 139 | ]) : recipeFilter; |
140 | 140 | ||
141 | const customWebsiteRecipe = recipePreviews.all.find(service => service.id === CUSTOM_WEBSITE_RECIPE_ID); | 141 | const customWebsiteRecipe = recipePreviews.all.find((service) => service.id === CUSTOM_WEBSITE_RECIPE_ID); |
142 | 142 | ||
143 | const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting | 143 | const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting |
144 | || recipePreviews.allRecipePreviewsRequest.isExecuting | 144 | || recipePreviews.allRecipePreviewsRequest.isExecuting |
@@ -156,7 +156,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
156 | addedServiceCount={services.all.length} | 156 | addedServiceCount={services.all.length} |
157 | hasLoadedRecipes={recipePreviews.featuredRecipePreviewsRequest.wasExecuted} | 157 | hasLoadedRecipes={recipePreviews.featuredRecipePreviewsRequest.wasExecuted} |
158 | showAddServiceInterface={serviceActions.showAddServiceInterface} | 158 | showAddServiceInterface={serviceActions.showAddServiceInterface} |
159 | searchRecipes={e => this.searchRecipes(e)} | 159 | searchRecipes={(e) => this.searchRecipes(e)} |
160 | resetSearch={() => this.resetSearch()} | 160 | resetSearch={() => this.resetSearch()} |
161 | searchNeedle={this.state.needle} | 161 | searchNeedle={this.state.needle} |
162 | serviceStatus={services.actionStatus} | 162 | serviceStatus={services.actionStatus} |