aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/content/ServiceView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/content/ServiceView.tsx')
-rw-r--r--src/components/services/content/ServiceView.tsx44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/components/services/content/ServiceView.tsx b/src/components/services/content/ServiceView.tsx
index e41184431..0754bccc5 100644
--- a/src/components/services/content/ServiceView.tsx
+++ b/src/components/services/content/ServiceView.tsx
@@ -135,29 +135,9 @@ class ServiceView extends Component<IProps, IState> {
135 )} 135 )}
136 </> 136 </>
137 )} 137 )}
138 {!service.isEnabled ? ( 138 {service.isEnabled ? (
139 <> 139 <>
140 {service.isActive && ( 140 {service.isHibernating ? (
141 <ServiceDisabled
142 name={service.name !== '' ? service.name : service.recipe.name}
143 // webview={service.webview} // TODO - [TECH DEBT][PROPS NOT EXIST IN COMPONENT] check it
144 enable={enable}
145 />
146 )}
147 </>
148 ) : (
149 <>
150 {!service.isHibernating ? (
151 <>
152 {showNavBar && <WebControlsScreen service={service} />}
153 <ServiceWebview
154 service={service}
155 setWebviewReference={setWebviewRef}
156 detachService={detachService}
157 isSpellcheckerEnabled={isSpellcheckerEnabled}
158 />
159 </>
160 ) : (
161 <div 141 <div
162 style={{ 142 style={{
163 display: 'flex', 143 display: 'flex',
@@ -180,6 +160,26 @@ class ServiceView extends Component<IProps, IState> {
180 <br /> 160 <br />
181 Try switching services or reloading Ferdium. 161 Try switching services or reloading Ferdium.
182 </div> 162 </div>
163 ) : (
164 <>
165 {showNavBar && <WebControlsScreen service={service} />}
166 <ServiceWebview
167 service={service}
168 setWebviewReference={setWebviewRef}
169 detachService={detachService}
170 isSpellcheckerEnabled={isSpellcheckerEnabled}
171 />
172 </>
173 )}
174 </>
175 ) : (
176 <>
177 {service.isActive && (
178 <ServiceDisabled
179 name={service.name === '' ? service.recipe.name : service.name}
180 // webview={service.webview} // TODO - [TECH DEBT][PROPS NOT EXIST IN COMPONENT] check it
181 enable={enable}
182 />
183 )} 183 )}
184 </> 184 </>
185 )} 185 )}