From ab8197c55e16daaa6d54781819e2484d5c1adcc6 Mon Sep 17 00:00:00 2001 From: GaOrtiga <49285692+GaOrtiga@users.noreply.github.com> Date: Thu, 2 May 2024 04:38:22 -0300 Subject: [PATCH] Add password enabled during ISO register and update (#8992) Co-authored-by: Gabriel --- ui/src/config/section/image.js | 2 +- ui/src/views/image/RegisterOrUploadIso.vue | 9 ++++++++- ui/src/views/image/UpdateISO.vue | 8 +++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ui/src/config/section/image.js b/ui/src/config/section/image.js index b01d657627a..e6095c4aba1 100644 --- a/ui/src/config/section/image.js +++ b/ui/src/config/section/image.js @@ -231,7 +231,7 @@ export default { } return fields }, - details: ['name', 'id', 'displaytext', 'checksum', 'ostypename', 'size', 'bootable', 'isready', 'directdownload', 'isextractable', 'ispublic', 'isfeatured', 'crosszones', 'account', 'domain', 'created', 'userdatadetails', 'userdatapolicy', 'url'], + details: ['name', 'id', 'displaytext', 'checksum', 'ostypename', 'size', 'bootable', 'isready', 'passwordenabled', 'directdownload', 'isextractable', 'ispublic', 'isfeatured', 'crosszones', 'account', 'domain', 'created', 'userdatadetails', 'userdatapolicy', 'url'], searchFilters: () => { var filters = ['name', 'zoneid', 'tags'] if (['Admin', 'DomainAdmin'].includes(store.getters.userInfo.roletype)) { diff --git a/ui/src/views/image/RegisterOrUploadIso.vue b/ui/src/views/image/RegisterOrUploadIso.vue index 1a461ee6bf6..746cdb2f984 100644 --- a/ui/src/views/image/RegisterOrUploadIso.vue +++ b/ui/src/views/image/RegisterOrUploadIso.vue @@ -250,6 +250,12 @@ + + + +
{{ $t('label.cancel') }} @@ -332,7 +338,8 @@ export default { this.form = reactive({ bootable: true, isextractable: false, - ispublic: false + ispublic: false, + passwordenabled: false }) this.rules = reactive({ url: [{ required: true, message: this.$t('label.upload.iso.from.local') }], diff --git a/ui/src/views/image/UpdateISO.vue b/ui/src/views/image/UpdateISO.vue index 4d7140df165..f718f1c030c 100644 --- a/ui/src/views/image/UpdateISO.vue +++ b/ui/src/views/image/UpdateISO.vue @@ -42,6 +42,12 @@ :placeholder="apiParams.displaytext.description" autoFocus /> + + + +