diff options
author | Danny Qiu <dqiu55@gmail.com> | 2017-12-29 01:33:42 -0500 |
---|---|---|
committer | Danny Qiu <dqiu55@gmail.com> | 2017-12-29 01:33:46 -0500 |
commit | 33c6e0af4112a927027a2533dea4bea3750e7865 (patch) | |
tree | fabd8a62049a187c70063e14d5171fa65dc1d159 /src/containers | |
parent | Delete session partition with service (diff) | |
download | ferdium-app-33c6e0af4112a927027a2533dea4bea3750e7865.tar.gz ferdium-app-33c6e0af4112a927027a2533dea4bea3750e7865.tar.zst ferdium-app-33c6e0af4112a927027a2533dea4bea3750e7865.zip |
Add button to clear global cache and all services
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 45ded9e5c..890bf6501 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -193,8 +193,8 @@ export default class EditSettingsScreen extends Component { | |||
193 | } | 193 | } |
194 | 194 | ||
195 | render() { | 195 | render() { |
196 | const { updateStatus, updateStatusTypes } = this.props.stores.app; | 196 | const { updateStatus, updateStatusTypes, isClearingAllCache } = this.props.stores.app; |
197 | const { checkForUpdates, installUpdate } = this.props.actions.app; | 197 | const { checkForUpdates, installUpdate, clearAllCache } = this.props.actions.app; |
198 | const form = this.prepareForm(); | 198 | const form = this.prepareForm(); |
199 | 199 | ||
200 | return ( | 200 | return ( |
@@ -207,6 +207,8 @@ export default class EditSettingsScreen extends Component { | |||
207 | noUpdateAvailable={updateStatus === updateStatusTypes.NOT_AVAILABLE} | 207 | noUpdateAvailable={updateStatus === updateStatusTypes.NOT_AVAILABLE} |
208 | updateIsReadyToInstall={updateStatus === updateStatusTypes.DOWNLOADED} | 208 | updateIsReadyToInstall={updateStatus === updateStatusTypes.DOWNLOADED} |
209 | onSubmit={d => this.onSubmit(d)} | 209 | onSubmit={d => this.onSubmit(d)} |
210 | isClearingAllCache={isClearingAllCache} | ||
211 | onClearAllCache={clearAllCache} | ||
210 | /> | 212 | /> |
211 | ); | 213 | ); |
212 | } | 214 | } |
@@ -223,6 +225,7 @@ EditSettingsScreen.wrappedComponent.propTypes = { | |||
223 | launchOnStartup: PropTypes.func.isRequired, | 225 | launchOnStartup: PropTypes.func.isRequired, |
224 | checkForUpdates: PropTypes.func.isRequired, | 226 | checkForUpdates: PropTypes.func.isRequired, |
225 | installUpdate: PropTypes.func.isRequired, | 227 | installUpdate: PropTypes.func.isRequired, |
228 | clearAllCache: PropTypes.func.isRequired, | ||
226 | }).isRequired, | 229 | }).isRequired, |
227 | settings: PropTypes.shape({ | 230 | settings: PropTypes.shape({ |
228 | update: PropTypes.func.isRequired, | 231 | update: PropTypes.func.isRequired, |