1<template> 2 <b-modal 3 id="modal-update-firmware" 4 :title="$t('pageFirmware.sectionTitleUpdateFirmware')" 5 :ok-title="$t('pageFirmware.form.updateFirmware.startUpdate')" 6 :cancel-title="$t('global.action.cancel')" 7 @ok="$emit('ok')" 8 > 9 <template v-if="isSingleFileUploadEnabled"> 10 <p> 11 {{ $t('pageFirmware.modal.updateFirmwareInfo') }} 12 </p> 13 <p> 14 {{ 15 $t('pageFirmware.modal.updateFirmwareInfo2', { 16 running: runningBmcVersion, 17 }) 18 }} 19 </p> 20 <p class="m-0"> 21 {{ $t('pageFirmware.modal.updateFirmwareInfo3') }} 22 </p> 23 </template> 24 <template v-else> 25 {{ $t('pageFirmware.modal.updateFirmwareInfoDefault') }} 26 </template> 27 </b-modal> 28</template> 29 30<script> 31export default { 32 computed: { 33 runningBmc() { 34 return this.$store.getters['firmware/activeBmcFirmware']; 35 }, 36 runningBmcVersion() { 37 return this.runningBmc?.version || '--'; 38 }, 39 isSingleFileUploadEnabled() { 40 return this.$store.getters['firmware/isSingleFileUploadEnabled']; 41 }, 42 }, 43}; 44</script> 45