blob: 08e4ae91f50fb886ee637636dd3817e01a8fbacd [file] [log] [blame]
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -08001<template>
2 <b-row>
3 <b-col xl="10">
4 <!-- Operation in progress alert -->
5 <alert v-if="isOperationInProgress" variant="info" class="mb-5">
6 <p>
Yoshie Muranaka33d755f2021-02-18 15:24:14 -08007 {{ $t('pageFirmware.alert.operationInProgress') }}
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -08008 </p>
9 </alert>
10 <!-- Power off server warning alert -->
Derick Montague71114fe2021-05-06 18:17:34 -050011 <alert v-else-if="!isServerOff" variant="warning" class="mb-5">
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080012 <p class="mb-0">
Yoshie Muranaka33d755f2021-02-18 15:24:14 -080013 {{ $t('pageFirmware.alert.serverMustBePoweredOffTo') }}
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080014 </p>
15 <ul class="m-0">
16 <li>
Yoshie Muranaka33d755f2021-02-18 15:24:14 -080017 {{ $t('pageFirmware.alert.switchRunningAndBackupImages') }}
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080018 </li>
19 <li>
Yoshie Muranaka33d755f2021-02-18 15:24:14 -080020 {{ $t('pageFirmware.alert.updateFirmware') }}
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080021 </li>
22 </ul>
23 <template #action>
Dixsie Wolmersaaff26e2021-09-09 12:58:08 -050024 <b-link to="/operations/server-power-operations">
Yoshie Muranaka33d755f2021-02-18 15:24:14 -080025 {{ $t('pageFirmware.alert.viewServerPowerOperations') }}
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080026 </b-link>
27 </template>
28 </alert>
29 </b-col>
30 </b-row>
31</template>
32
33<script>
34import Alert from '@/components/Global/Alert';
35
36export default {
37 components: { Alert },
38 props: {
Derick Montague71114fe2021-05-06 18:17:34 -050039 isServerOff: {
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080040 required: true,
41 type: Boolean,
Kenneth Fullbrightc3cf3612022-01-27 18:55:00 -060042 default: true,
Yoshie Muranaka7bc85e42021-02-11 09:59:13 -080043 },
44 },
45 computed: {
46 isOperationInProgress() {
47 return this.$store.getters['controls/isOperationInProgress'];
48 },
49 },
50};
51</script>