aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-01 21:51:34 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-01 21:51:34 +0200
commitf8fbaad43522b91374eaed5e3df6fe47bc94862f (patch)
treee39b6301c183fe5e87c81f4f340e701faed2d3aa /src/components/services
parentfeat(Service API): Share `team`, `url` and `hasCustomIcon` with service (diff)
downloadferdium-app-f8fbaad43522b91374eaed5e3df6fe47bc94862f.tar.gz
ferdium-app-f8fbaad43522b91374eaed5e3df6fe47bc94862f.tar.zst
ferdium-app-f8fbaad43522b91374eaed5e3df6fe47bc94862f.zip
feat(Custom Websites): Add simple browser controls
Diffstat (limited to 'src/components/services')
-rw-r--r--src/components/services/content/ServiceView.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/components/services/content/ServiceView.js b/src/components/services/content/ServiceView.js
index f65f51346..e8df58a1e 100644
--- a/src/components/services/content/ServiceView.js
+++ b/src/components/services/content/ServiceView.js
@@ -12,6 +12,7 @@ import WebviewErrorHandler from './ErrorHandlers/WebviewErrorHandler';
12import ServiceDisabled from './ServiceDisabled'; 12import ServiceDisabled from './ServiceDisabled';
13import ServiceRestricted from './ServiceRestricted'; 13import ServiceRestricted from './ServiceRestricted';
14import ServiceWebview from './ServiceWebview'; 14import ServiceWebview from './ServiceWebview';
15import WebControlsScreen from '../../../features/webControls/containers/WebControlsScreen';
15 16
16export default @observer class ServiceView extends Component { 17export default @observer class ServiceView extends Component {
17 static propTypes = { 18 static propTypes = {
@@ -137,11 +138,16 @@ export default @observer class ServiceView extends Component {
137 type={service.restrictionType} 138 type={service.restrictionType}
138 /> 139 />
139 ) : ( 140 ) : (
140 <ServiceWebview 141 <>
141 service={service} 142 {service.recipe.id === 'franz-custom-website' && (
142 setWebviewReference={setWebviewReference} 143 <WebControlsScreen service={service} />
143 detachService={detachService} 144 )}
144 /> 145 <ServiceWebview
146 service={service}
147 setWebviewReference={setWebviewReference}
148 detachService={detachService}
149 />
150 </>
145 )} 151 )}
146 </> 152 </>
147 )} 153 )}