diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-02 13:58:27 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-02 13:58:27 +0200 |
commit | 418a8aa8cd51bf135bb95006424dd96b9c0d0a61 (patch) | |
tree | 6b3394aabdedc070f6b9e179457627b435b69ad9 /src/components/services/content/ServiceView.js | |
parent | Fix Ferdi Lock not corrently locking (diff) | |
parent | Merge branch 'release/5.4.0' of https://github.com/meetfranz/franz into franz... (diff) | |
download | ferdium-app-418a8aa8cd51bf135bb95006424dd96b9c0d0a61.tar.gz ferdium-app-418a8aa8cd51bf135bb95006424dd96b9c0d0a61.tar.zst ferdium-app-418a8aa8cd51bf135bb95006424dd96b9c0d0a61.zip |
Merge branch 'franz-5.4.0' into develop
Diffstat (limited to 'src/components/services/content/ServiceView.js')
-rw-r--r-- | src/components/services/content/ServiceView.js | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/src/components/services/content/ServiceView.js b/src/components/services/content/ServiceView.js index c45acc961..74d8af0bc 100644 --- a/src/components/services/content/ServiceView.js +++ b/src/components/services/content/ServiceView.js | |||
@@ -13,6 +13,7 @@ import WebviewErrorHandler from './ErrorHandlers/WebviewErrorHandler'; | |||
13 | import ServiceDisabled from './ServiceDisabled'; | 13 | import ServiceDisabled from './ServiceDisabled'; |
14 | import ServiceWebview from './ServiceWebview'; | 14 | import ServiceWebview from './ServiceWebview'; |
15 | import SettingsStore from '../../../stores/SettingsStore'; | 15 | import SettingsStore from '../../../stores/SettingsStore'; |
16 | import WebControlsScreen from '../../../features/webControls/containers/WebControlsScreen'; | ||
16 | 17 | ||
17 | export default @observer @inject('stores') class ServiceView extends Component { | 18 | export default @observer @inject('stores') class ServiceView extends Component { |
18 | static propTypes = { | 19 | static propTypes = { |
@@ -177,18 +178,31 @@ export default @observer @inject('stores') class ServiceView extends Component { | |||
177 | </Fragment> | 178 | </Fragment> |
178 | ) : ( | 179 | ) : ( |
179 | <> | 180 | <> |
180 | {!this.state.hibernate ? ( | 181 | {service.isServiceAccessRestricted ? ( |
181 | <ServiceWebview | 182 | <ServiceRestricted |
182 | service={service} | 183 | name={service.recipe.name} |
183 | setWebviewReference={setWebviewReference} | 184 | upgrade={upgrade} |
184 | detachService={detachService} | 185 | type={service.restrictionType} |
185 | /> | 186 | /> |
186 | ) : ( | 187 | ) : ( |
187 | <div> | 188 | <> |
188 | <span role="img" aria-label="Sleeping Emoji">😴</span> | 189 | {service.recipe.id === 'franz-custom-website' && ( |
189 | {' '} | 190 | <WebControlsScreen service={service} /> |
190 | This service is currently hibernating. If this page doesn't close soon, please try reloading Ferdi. | 191 | )} |
191 | </div> | 192 | {!this.state.hibernate ? ( |
193 | <ServiceWebview | ||
194 | service={service} | ||
195 | setWebviewReference={setWebviewReference} | ||
196 | detachService={detachService} | ||
197 | /> | ||
198 | ) : ( | ||
199 | <div> | ||
200 | <span role="img" aria-label="Sleeping Emoji">😴</span> | ||
201 | {' '} | ||
202 | This service is currently hibernating. If this page doesn't close soon, please try reloading Ferdi. | ||
203 | </div> | ||
204 | )} | ||
205 | </> | ||
192 | )} | 206 | )} |
193 | </> | 207 | </> |
194 | )} | 208 | )} |