Added correct diagnostic mode display
Before the patch, the diagnostic mode was displayed as "Not available",
after the patch "Diagnostic mode".
Test: in the console run the command
"busctl set-property xyz.openbmc_project.State.Host \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.Host CurrentHostState \
s "xyz.openbmc_project.State.Host.HostState.DiagnosticMode".
open the "Server power operations" page,
check the Server status
Signed-off-by: glukhov.mikhail <mikl@greenfil.ru>
Change-Id: I90d04e05188eb92c4c4b38fe578ae36db0424b5c
diff --git a/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue
index 9e03083..ba9ebce 100644
--- a/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue
+++ b/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue
@@ -22,6 +22,12 @@
>
{{ $t('global.status.off') }}
</dd>
+ <dd
+ v-else-if="serverStatus === 'diagnosticMode'"
+ data-test-id="powerServerOps-text-hostStatus"
+ >
+ {{ $t('global.status.diagnosticMode') }}
+ </dd>
<dd v-else>
{{ $t('global.status.notAvailable') }}
</dd>