diff options
Diffstat (limited to 'src/components/services')
-rw-r--r-- | src/components/services/content/ServiceView.js | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/src/components/services/content/ServiceView.js b/src/components/services/content/ServiceView.js index 74d8af0bc..0cfefc92b 100644 --- a/src/components/services/content/ServiceView.js +++ b/src/components/services/content/ServiceView.js | |||
@@ -178,31 +178,21 @@ export default @observer @inject('stores') class ServiceView extends Component { | |||
178 | </Fragment> | 178 | </Fragment> |
179 | ) : ( | 179 | ) : ( |
180 | <> | 180 | <> |
181 | {service.isServiceAccessRestricted ? ( | 181 | {service.recipe.id === 'franz-custom-website' && ( |
182 | <ServiceRestricted | 182 | <WebControlsScreen service={service} /> |
183 | name={service.recipe.name} | 183 | )} |
184 | upgrade={upgrade} | 184 | {!this.state.hibernate ? ( |
185 | type={service.restrictionType} | 185 | <ServiceWebview |
186 | service={service} | ||
187 | setWebviewReference={setWebviewReference} | ||
188 | detachService={detachService} | ||
186 | /> | 189 | /> |
187 | ) : ( | 190 | ) : ( |
188 | <> | 191 | <div> |
189 | {service.recipe.id === 'franz-custom-website' && ( | 192 | <span role="img" aria-label="Sleeping Emoji">😴</span> |
190 | <WebControlsScreen service={service} /> | 193 | {' '} |
191 | )} | 194 | This service is currently hibernating. If this page doesn't close soon, please try reloading Ferdi. |
192 | {!this.state.hibernate ? ( | 195 | </div> |
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 | </> | ||
206 | )} | 196 | )} |
207 | </> | 197 | </> |
208 | )} | 198 | )} |