Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 1 | <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 Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 7 | {{ $t('pageFirmware.alert.operationInProgress') }} |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 8 | </p> |
| 9 | </alert> |
| 10 | <!-- Power off server warning alert --> |
Derick Montague | 71114fe | 2021-05-06 18:17:34 -0500 | [diff] [blame] | 11 | <alert v-else-if="!isServerOff" variant="warning" class="mb-5"> |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 12 | <p class="mb-0"> |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 13 | {{ $t('pageFirmware.alert.serverMustBePoweredOffTo') }} |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 14 | </p> |
| 15 | <ul class="m-0"> |
| 16 | <li> |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 17 | {{ $t('pageFirmware.alert.switchRunningAndBackupImages') }} |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 18 | </li> |
| 19 | <li> |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 20 | {{ $t('pageFirmware.alert.updateFirmware') }} |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 21 | </li> |
| 22 | </ul> |
| 23 | <template #action> |
Dixsie Wolmers | aaff26e | 2021-09-09 12:58:08 -0500 | [diff] [blame] | 24 | <b-link to="/operations/server-power-operations"> |
Yoshie Muranaka | 33d755f | 2021-02-18 15:24:14 -0800 | [diff] [blame] | 25 | {{ $t('pageFirmware.alert.viewServerPowerOperations') }} |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 26 | </b-link> |
| 27 | </template> |
| 28 | </alert> |
| 29 | </b-col> |
| 30 | </b-row> |
| 31 | </template> |
| 32 | |
| 33 | <script> |
| 34 | import Alert from '@/components/Global/Alert'; |
| 35 | |
| 36 | export default { |
| 37 | components: { Alert }, |
| 38 | props: { |
Derick Montague | 71114fe | 2021-05-06 18:17:34 -0500 | [diff] [blame] | 39 | isServerOff: { |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 40 | required: true, |
| 41 | type: Boolean, |
Kenneth Fullbright | c3cf361 | 2022-01-27 18:55:00 -0600 | [diff] [blame] | 42 | default: true, |
Yoshie Muranaka | 7bc85e4 | 2021-02-11 09:59:13 -0800 | [diff] [blame] | 43 | }, |
| 44 | }, |
| 45 | computed: { |
| 46 | isOperationInProgress() { |
| 47 | return this.$store.getters['controls/isOperationInProgress']; |
| 48 | }, |
| 49 | }, |
| 50 | }; |
| 51 | </script> |