@@ -25,38 +25,35 @@ export function HelmRevisionWidget(props) {
25
25
const reconciling = reconcilingCondition && reconcilingConditions [ 0 ] . status === "True"
26
26
27
27
const sourceRef = helmRelease . spec . chart ? helmRelease . spec . chart . spec . sourceRef : helmRelease . spec . chartRef
28
-
29
28
const namespace = sourceRef . namespace ? sourceRef . namespace : helmRelease . metadata . namespace
30
29
const navigationHandler = ( ) => handleNavigationSelect ( "Sources" , namespace , sourceRef . name , sourceRef . kind )
31
30
32
31
return (
33
32
< >
34
33
{ ! ready && reconciling && ! stalled &&
35
34
< span >
36
- { helmRelease . spec . chart &&
37
- < >
38
35
< span > Reconciling new version: </ span >
36
+ < NavigationButton handleNavigation = { navigationHandler } >
37
+ { helmRelease . spec . chart &&
39
38
< span > { helmRelease . spec . chart . spec . version } @{ helmRelease . spec . chart . spec . chart } </ span >
40
- </ >
41
39
}
42
- { ! helmRelease . spec . chart &&
43
- < span > Reconciling new version.. </ span > // chartRef doesn't have version info
40
+ { helmRelease . spec . chartRef &&
41
+ < span > { ` ${ helmRelease . spec . chartRef . namespace } / ${ helmRelease . spec . chartRef . name } ` } </ span >
44
42
}
43
+ </ NavigationButton >
45
44
</ span >
46
45
}
47
46
{ ! ready && stalled &&
48
47
< span className = 'bg-orange-400' >
48
+ < span > Reconciliation stalled: </ span >
49
+ < NavigationButton handleNavigation = { navigationHandler } >
49
50
{ helmRelease . spec . chart &&
50
- < >
51
- < span > Last Attempted: </ span >
52
51
< span > { helmRelease . spec . chart . spec . version } @{ helmRelease . spec . chart . spec . chart } </ span >
53
- </ >
54
52
}
55
- { ! helmRelease . spec . chart &&
56
- < >
57
- < span > Reconciliation stalled..</ span > // chartRef doesn't have version info
58
- </ >
53
+ { helmRelease . spec . chartRef &&
54
+ < span > { `${ helmRelease . spec . chartRef . namespace } /${ helmRelease . spec . chartRef . name } ` } </ span >
59
55
}
56
+ </ NavigationButton >
60
57
</ span >
61
58
}
62
59
< span className = { `block ${ ready || reconciling ? '' : 'font-normal text-neutral-600' } field` } >
0 commit comments