blob: f7ac0fc903e21505d0aea2af3d54864d720301c4 [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>
7 {{ $t('pageFirmware.singleFileUpload.alert.operationInProgress') }}
8 </p>
9 </alert>
10 <!-- Power off server warning alert -->
11 <alert v-else-if="!isHostOff" variant="warning" class="mb-5">
12 <p class="mb-0">
13 {{
14 $t('pageFirmware.singleFileUpload.alert.serverMustBePoweredOffTo')
15 }}
16 </p>
17 <ul class="m-0">
18 <li>
19 {{
20 $t(
21 'pageFirmware.singleFileUpload.alert.switchRunningAndBackupImages'
22 )
23 }}
24 </li>
25 <li>
26 {{ $t('pageFirmware.singleFileUpload.alert.updateFirmware') }}
27 </li>
28 </ul>
29 <template #action>
30 <b-link to="/control/server-power-operations">
31 {{
32 $t(
33 'pageFirmware.singleFileUpload.alert.viewServerPowerOperations'
34 )
35 }}
36 </b-link>
37 </template>
38 </alert>
39 </b-col>
40 </b-row>
41</template>
42
43<script>
44import Alert from '@/components/Global/Alert';
45
46export default {
47 components: { Alert },
48 props: {
49 isHostOff: {
50 required: true,
51 type: Boolean,
52 },
53 },
54 computed: {
55 isOperationInProgress() {
56 return this.$store.getters['controls/isOperationInProgress'];
57 },
58 },
59};
60</script>