diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/containers/settings/ServicesScreen.js | |
parent | Bumped up version to: 5.6.3-nightly.0 [skip ci] (diff) | |
download | ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip |
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/containers/settings/ServicesScreen.js')
-rw-r--r-- | src/containers/settings/ServicesScreen.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/containers/settings/ServicesScreen.js b/src/containers/settings/ServicesScreen.js index eb2b1bcb5..c9dfc68d0 100644 --- a/src/containers/settings/ServicesScreen.js +++ b/src/containers/settings/ServicesScreen.js | |||
@@ -10,7 +10,9 @@ import ServiceStore from '../../stores/ServicesStore'; | |||
10 | import ServicesDashboard from '../../components/settings/services/ServicesDashboard'; | 10 | import ServicesDashboard from '../../components/settings/services/ServicesDashboard'; |
11 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 11 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
12 | 12 | ||
13 | export default @inject('stores', 'actions') @observer class ServicesScreen extends Component { | 13 | @inject('stores', 'actions') |
14 | @observer | ||
15 | class ServicesScreen extends Component { | ||
14 | componentWillUnmount() { | 16 | componentWillUnmount() { |
15 | this.props.actions.service.resetFilter(); | 17 | this.props.actions.service.resetFilter(); |
16 | this.props.actions.service.resetStatus(); | 18 | this.props.actions.service.resetStatus(); |
@@ -23,11 +25,7 @@ export default @inject('stores', 'actions') @observer class ServicesScreen exten | |||
23 | 25 | ||
24 | render() { | 26 | render() { |
25 | const { user, services, router } = this.props.stores; | 27 | const { user, services, router } = this.props.stores; |
26 | const { | 28 | const { toggleService, filter, resetFilter } = this.props.actions.service; |
27 | toggleService, | ||
28 | filter, | ||
29 | resetFilter, | ||
30 | } = this.props.actions.service; | ||
31 | const isLoading = services.allServicesRequest.isExecuting; | 29 | const isLoading = services.allServicesRequest.isExecuting; |
32 | 30 | ||
33 | let allServices = services.all; | 31 | let allServices = services.all; |
@@ -47,7 +45,10 @@ export default @inject('stores', 'actions') @observer class ServicesScreen exten | |||
47 | filterServices={filter} | 45 | filterServices={filter} |
48 | resetFilter={resetFilter} | 46 | resetFilter={resetFilter} |
49 | goTo={router.push} | 47 | goTo={router.push} |
50 | servicesRequestFailed={services.allServicesRequest.wasExecuted && services.allServicesRequest.isError} | 48 | servicesRequestFailed={ |
49 | services.allServicesRequest.wasExecuted && | ||
50 | services.allServicesRequest.isError | ||
51 | } | ||
51 | retryServicesRequest={() => services.allServicesRequest.reload()} | 52 | retryServicesRequest={() => services.allServicesRequest.reload()} |
52 | searchNeedle={services.filterNeedle} | 53 | searchNeedle={services.filterNeedle} |
53 | /> | 54 | /> |
@@ -66,3 +67,5 @@ ServicesScreen.wrappedComponent.propTypes = { | |||
66 | service: PropTypes.instanceOf(ServiceStore).isRequired, | 67 | service: PropTypes.instanceOf(ServiceStore).isRequired, |
67 | }).isRequired, | 68 | }).isRequired, |
68 | }; | 69 | }; |
70 | |||
71 | export default ServicesScreen; | ||