Update server power operations viewable actions
The server power operations page should show power operations if
the server is in an error state. This update will make sure options
are visible as long as the status is not 'off' or an operation is
in progress.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I8d1211bd1ccaa8b5ec69a0dda4556eb97fc40e91
diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
index de377e1..41d8cf0 100644
--- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
+++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue
@@ -48,7 +48,7 @@
{{ $t('pageServerPowerOperations.powerOn') }}
</b-button>
</template>
- <template v-else-if="hostStatus === 'on'">
+ <template v-else>
<!-- Reboot server options -->
<b-form novalidate class="mb-5" @submit.prevent="rebootServer">
<b-form-group
@@ -110,9 +110,6 @@
</b-button>
</b-form>
</template>
- <template v-else>
- {{ $t('global.status.notAvailable') }}
- </template>
</page-section>
</b-col>
</b-row>