File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,23 @@ export default function AppStatus({
33
33
}
34
34
const appStatusLowerCase = status ?. toLowerCase ( )
35
35
const isNotDeployed = appStatusLowerCase === StatusConstants . NOT_DEPLOYED . noSpaceLower
36
- const iconClass = isNotDeployed ? StatusConstants . NOT_DEPLOYED . lowerCase : appStatusLowerCase
36
+ const isNotReady = appStatus === StatusConstants . NOT_READY . normalCase
37
37
const statusMessage = status || ( isVirtualEnv ? StatusConstants . NOT_AVILABLE . normalCase : '-' )
38
38
const notDeployed = isJobView ? YET_TO_RUN : StatusConstants . NOT_DEPLOYED . normalCase
39
39
const textContent = isNotDeployed ? notDeployed : statusMessage
40
40
41
+ const getIconClass = ( ) => {
42
+ if ( isNotDeployed ) {
43
+ return StatusConstants . NOT_DEPLOYED . lowerCase
44
+ }
45
+ if ( isNotReady ) {
46
+ return StatusConstants . NOT_READY . lowerCase
47
+ }
48
+ return appStatusLowerCase
49
+ }
50
+
51
+ const iconClass = getIconClass ( )
52
+
41
53
const renderIcon = ( ) => {
42
54
if ( iconClass ) {
43
55
return < span className = { `dc__app-summary__icon icon-dim-16 ${ iconClass } ${ iconClass } --node` } />
You can’t perform that action at this time.
0 commit comments