Skip to content

Commit 1d8ccf5

Browse files
committed
Fix healthVariant
1 parent 7cc82c5 commit 1d8ccf5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Resources/app/administration/src/overrides/sw-version/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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 %}

0 commit comments

Comments
 (0)