From 27f5fd6b141d65fbc8389f7e1cc20b238877ecf0 Mon Sep 17 00:00:00 2001 From: Bryan Lima Date: Tue, 24 May 2022 11:42:26 -0300 Subject: [PATCH 1/2] Add check for update only name and/or description of disk offering --- ui/src/views/AutogenView.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index ff75a6d2697e..e4214a42aa20 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1358,6 +1358,11 @@ export default { if ('id' in this.resource && action.params.map(i => { return i.name }).includes('id')) { params.id = this.resource.id } + + if (['updateDiskOffering'].includes(action.api) && values.tags === this.resource.tags) { + delete values.tags + } + for (const key in values) { const input = values[key] for (const param of action.params) { From ceac6c52a3f2e682a138f725168c1be34e35c3f5 Mon Sep 17 00:00:00 2001 From: Bryan Lima Date: Wed, 22 Jun 2022 17:14:29 -0300 Subject: [PATCH 2/2] Add check to update only name and/or description of service offerings as well --- ui/src/views/AutogenView.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index e4214a42aa20..8d2d1353c309 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1363,6 +1363,15 @@ export default { delete values.tags } + if (['updateServiceOffering'].includes(action.api)) { + if (values.hosttags === this.resource.hosttags) { + delete values.hosttags + } + if (values.storagetags === this.resource.storagetags) { + delete values.tags + } + } + for (const key in values) { const input = values[key] for (const param of action.params) {