summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglukhov.mikhail <mikl@greenfil.ru>2022-11-25 11:52:45 +0300
committerGunnar Mills <gmills@us.ibm.com>2022-12-19 20:23:08 +0300
commit83ca596d2f131869ba919ce802da553d4ab1ccf8 (patch)
treea9c8e28aedb22c2405dea8fce549950e77ad235e
parentba60e9c33dd0d0b87e1af6a26ab296b6f172c343 (diff)
downloadwebui-vue-83ca596d2f131869ba919ce802da553d4ab1ccf8.tar.xz
Fix SOL status
Only when the host is turned off should the status be "Disconnected". For other host states, the SOL status should be Connected. Test: enabled my host in DiagnosticMode. Now SOL status is "Connected", before the patch it was "Disconnected Signed-off-by: glukhov.mikhail <mikl@greenfil.ru> Change-Id: I000b181f71d7ee5bd243a3c6a6d03ea7a9ea0ef7
-rw-r--r--src/views/Operations/SerialOverLan/SerialOverLanConsole.vue19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue
index 694083fd..82637a42 100644
--- a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue
+++ b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue
@@ -3,7 +3,7 @@
<b-row class="d-flex">
<b-col sm="4" md="6">
<alert
- v-if="serverStatus === 'on' ? false : true"
+ v-if="connection ? false : true"
variant="warning"
:small="true"
class="mt-4"
@@ -21,7 +21,12 @@
{{ $t('pageSerialOverLan.status') }}:
</dt>
<dd class="d-inline">
- <status-icon :status="serverStatusIcon" /> {{ connectionStatus }}
+ <status-icon :status="serverStatusIcon" />
+ {{
+ connection
+ ? $t('pageSerialOverLan.connected')
+ : $t('pageSerialOverLan.disconnected')
+ }}
</dd>
</dl>
</b-col>
@@ -68,13 +73,11 @@ export default {
serverStatus() {
return this.$store.getters['global/serverStatus'];
},
- serverStatusIcon() {
- return this.serverStatus === 'on' ? 'success' : 'danger';
+ connection() {
+ return this.serverStatus === 'off' ? false : true;
},
- connectionStatus() {
- return this.serverStatus === 'on'
- ? this.$t('pageSerialOverLan.connected')
- : this.$t('pageSerialOverLan.disconnected');
+ serverStatusIcon() {
+ return this.connection ? 'success' : 'danger';
},
},
created() {