diff options
author | 2021-10-25 20:28:00 +0530 | |
---|---|---|
committer | 2021-10-25 20:28:00 +0530 | |
commit | ef0c253f87f9fa11382eeaa913e5e676afde7be5 (patch) | |
tree | f5e3cfd038347466c9d96d530dabfcffcb569c99 /src/components/services/tabs | |
parent | 5.6.3-nightly.42 [skip ci] (diff) | |
download | ferdium-app-ef0c253f87f9fa11382eeaa913e5e676afde7be5.tar.gz ferdium-app-ef0c253f87f9fa11382eeaa913e5e676afde7be5.tar.zst ferdium-app-ef0c253f87f9fa11382eeaa913e5e676afde7be5.zip |
Show error indicator when the service fails to load (#2124)
Co-authored-by: Johan K Mathew <johankmathew@gmail.com>
Diffstat (limited to 'src/components/services/tabs')
-rw-r--r-- | src/components/services/tabs/TabItem.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index ed8430b89..455d2549a 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -331,6 +331,13 @@ class TabItem extends Component { | |||
331 | ); | 331 | ); |
332 | } | 332 | } |
333 | 333 | ||
334 | let errorBadge = null; | ||
335 | if ( service.isError ) { | ||
336 | errorBadge=( | ||
337 | <i className = " mdi mdi-exclamation tab-item__error-icon"/> | ||
338 | ) | ||
339 | } | ||
340 | |||
334 | return ( | 341 | return ( |
335 | <li | 342 | <li |
336 | className={classnames({ | 343 | className={classnames({ |
@@ -349,8 +356,10 @@ class TabItem extends Component { | |||
349 | : '' | 356 | : '' |
350 | }`} | 357 | }`} |
351 | > | 358 | > |
359 | |||
352 | <img src={service.icon} className="tab-item__icon" alt="" /> | 360 | <img src={service.icon} className="tab-item__icon" alt="" /> |
353 | {notificationBadge} | 361 | {notificationBadge} |
362 | {errorBadge} | ||
354 | {IS_SERVICE_DEBUGGING_ENABLED && ( | 363 | {IS_SERVICE_DEBUGGING_ENABLED && ( |
355 | <> | 364 | <> |
356 | <div | 365 | <div |