aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/content/ServiceView.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-02 13:58:27 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-02 13:58:27 +0200
commit418a8aa8cd51bf135bb95006424dd96b9c0d0a61 (patch)
tree6b3394aabdedc070f6b9e179457627b435b69ad9 /src/components/services/content/ServiceView.js
parentFix Ferdi Lock not corrently locking (diff)
parentMerge branch 'release/5.4.0' of https://github.com/meetfranz/franz into franz... (diff)
downloadferdium-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.js34
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';
13import ServiceDisabled from './ServiceDisabled'; 13import ServiceDisabled from './ServiceDisabled';
14import ServiceWebview from './ServiceWebview'; 14import ServiceWebview from './ServiceWebview';
15import SettingsStore from '../../../stores/SettingsStore'; 15import SettingsStore from '../../../stores/SettingsStore';
16import WebControlsScreen from '../../../features/webControls/containers/WebControlsScreen';
16 17
17export default @observer @inject('stores') class ServiceView extends Component { 18export 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} />
190This service is currently hibernating. If this page doesn&#x27;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&#x27;t close soon, please try reloading Ferdi.
203 </div>
204 )}
205 </>
192 )} 206 )}
193 </> 207 </>
194 )} 208 )}