File tree Expand file tree Collapse file tree
src/Resources/app/administration/src/overrides/sw-version Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ Component.override('sw-version', {
1919
2020 computed : {
2121 healthVariant ( ) {
22- let color = 'green ' ;
22+ let variant = 'success ' ;
2323
2424 for ( let health of this . health ) {
2525 if ( health . state === 'STATE_ERROR' ) {
26- color = 'red ' ;
26+ variant = 'error ' ;
2727 continue ;
2828 }
2929
30- if ( health . state === 'STATE_WARNING' && color === 'success' ) {
31- color = 'orange ' ;
30+ if ( health . state === 'STATE_WARNING' && variant === 'success' ) {
31+ variant = 'warning ' ;
3232 }
3333 }
3434
35- return color ;
35+ return variant ;
3636 } ,
3737
3838 healthPlaceholder ( ) {
Original file line number Diff line number Diff line change 11{% block sw_version_status %}
22 <a :title =" healthPlaceholder" class =" sw-version__status" @click =" openSystemStatus" >
33 {% block sw_version_status_badge %}
4- <sw -color-badge v-if =" health" :color =" healthVariant" :rounded =" true" ></sw -color-badge >
4+ <sw -color-badge v-if =" health" :variant =" healthVariant" :rounded =" true" ></sw -color-badge >
55 {% endblock %}
66 </a >
77{% endblock %}
You can’t perform that action at this time.
0 commit comments