File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,18 @@ function buildChartCard(elm) {
88
88
return
89
89
}
90
90
91
- if ( isNewerVersion ( elm . chartVersion , data [ 0 ] . version ) ) {
92
- const icon = $ ( "<span class='ms-2 text-success ' data-bs-toggle='tooltip' data-bs-placement='bottom' data-bs-title='Upgrade available: " + data [ 0 ] . version + " from " + data [ 0 ] . repository + " '></span>")
91
+ if ( isNewerVersion ( elm . chartVersion , data [ 0 ] . version ) || data [ 0 ] . isSuggestedRepo ) {
92
+ const icon = $ ( "<br/>< span class='ms-2 fw-bold ' data-bs-toggle='tooltip' data-bs-placement='bottom'></span>" )
93
93
if ( data [ 0 ] . isSuggestedRepo ) {
94
- icon . addClass ( "bi-arrow-up-circle" )
94
+ icon . addClass ( "bi-plus-circle-fill text-primary" )
95
+ icon . text ( " ADD REPO" )
96
+ icon . attr ( "data-bs-title" , "Add '" + data [ 0 ] . repository + "' to list of known repositories" )
95
97
} else {
96
- icon . addClass ( "bi-arrow-up-circle-fill" )
98
+ icon . addClass ( "bi-arrow-up-circle-fill text-primary" )
99
+ icon . text ( " UPGRADE" )
100
+ icon . attr ( "data-bs-title" , "Upgrade available: " + data [ 0 ] . version + " from " + data [ 0 ] . repository )
97
101
}
98
- card . find ( ".rel-name span " ) . append ( icon )
102
+ card . find ( ".rel-chart div " ) . append ( icon )
99
103
100
104
const tooltipTriggerList = card . find ( '[data-bs-toggle="tooltip"]' )
101
105
const tooltipList = [ ...tooltipTriggerList ] . map ( tooltipTriggerEl => new bootstrap . Tooltip ( tooltipTriggerEl ) )
Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ $("#topNav ul a").click(function () {
117
117
initView ( )
118
118
} )
119
119
120
- const myAlert = document . getElementById ( 'errorAlert' )
121
- myAlert . addEventListener ( 'close.bs.alert' , event => {
120
+ const errAlert = document . getElementById ( 'errorAlert' )
121
+ errAlert . addEventListener ( 'close.bs.alert' , event => {
122
122
event . preventDefault ( )
123
123
$ ( "#errorAlert" ) . hide ( )
124
124
} )
You can’t perform that action at this time.
0 commit comments