Skip to content

Commit

Permalink
Firmware-change (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandeepa Singh authored and GitHub Enterprise committed Feb 24, 2022
1 parent 058d4d4 commit 0dc3e12
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 107 deletions.
3 changes: 2 additions & 1 deletion src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
"certificates": "@:appPageTitle.certificates",
"virtualMedia": "@:appPageTitle.virtualMedia",
"serviceLogin": "@:appPageTitle.serviceLogin",
"snmpAlerts": "@:appPageTitle.snmpAlerts",
"power": "@:appPageTitle.power",
"keyClear": "@:appPageTitle.keyClear",
"snmpAlerts": "@:appPageTitle.snmpAlerts",
Expand Down Expand Up @@ -417,9 +416,11 @@
"fileAddress": "File address",
"fileSource": "File source",
"imageFile": "Image file",
"manageAccessKeys": "Manage access keys",
"newAccessKey": "New access key",
"startUpdate": "Start update",
"tftpServer": "TFTP server",
"tftpServerInfo": "<server_ip>/<file_name>.tar",
"workstation": "Workstation"
}
},
Expand Down
15 changes: 6 additions & 9 deletions src/views/Operations/Firmware/FirmwareAccessKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,24 @@
<span v-else>
{{ firmwareAccessKeyInfo.expirationDate | formatDate }}
</span>
<b-btn v-b-modal.modal-firmware-access-key variant="link" class="py-0">
<icon-edit :title="$t('pageFirmware.modal.enterNewAccessKey')" />
</b-btn>
</dd>
<b-link
class="d-inline-block mb-4 m-md-0"
to="/resource-management/capacity-on-demand"
>
{{ $t('pageFirmware.form.updateFirmware.manageAccessKeys') }}
</b-link>
</dl>
<firmware-modal-access-key @ok="submitForm" />
</div>
</template>

<script>
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import FirmwareModalAccessKey from './FirmwareModalAccessKey.vue';
import IconEdit from '@carbon/icons-vue/es/edit/20';
import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
import { mapGetters } from 'vuex';
export default {
name: 'FirmwareAccessKey',
components: {
FirmwareModalAccessKey,
IconEdit,
},
mixins: [LoadingBarMixin, BVToastMixin],
computed: {
...mapGetters('licenses', ['firmwareAccessKeyInfo']),
Expand Down
9 changes: 7 additions & 2 deletions src/views/Operations/Firmware/FirmwareFormUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
</b-form-radio>
<b-form-radio v-model="isWorkstationSelected" :value="false">
{{ $t('pageFirmware.form.updateFirmware.tftpServer') }}
<span
><info-tooltip
class="info-icon"
:title="$t('pageFirmware.form.updateFirmware.tftpServerInfo')"
/></span>
</b-form-radio>
</b-form-group>

Expand Down Expand Up @@ -90,13 +95,13 @@ import { requiredIf } from 'vuelidate/lib/validators';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import LoadingBarMixin, { loading } from '@/components/Mixins/LoadingBarMixin';
import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
import InfoTooltip from '@/components/Global/InfoTooltip';
import Alert from '@/components/Global/Alert';
import FormFile from '@/components/Global/FormFile';
import ModalUpdateFirmware from './FirmwareModalUpdateFirmware';
export default {
components: { Alert, FormFile, ModalUpdateFirmware },
components: { Alert, InfoTooltip, FormFile, ModalUpdateFirmware },
mixins: [BVToastMixin, LoadingBarMixin, VuelidateMixin],
props: {
isPageDisabled: {
Expand Down
95 changes: 0 additions & 95 deletions src/views/Operations/Firmware/FirmwareModalAccessKey.vue

This file was deleted.

0 comments on commit 0dc3e12

Please sign in to comment.