From 6f71b7721a8874eb5e864f4e2632145e19023674 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 9 Jan 2020 12:32:35 +0530 Subject: [PATCH] config: update offering access action (domain/zone) (#94) Update Offering Access action with the action form for: Compute Offering Storage Offering Network Offering VPC Offering Fixes #91 Signed-off-by: Abhishek Kumar Co-authored-by: Rohit Yadav Signed-off-by: Rohit Yadav --- ui/src/config/section/offering.js | 28 ++ .../views/offering/UpdateOfferingAccess.vue | 294 ++++++++++++++++++ 2 files changed, 322 insertions(+) create mode 100644 ui/src/views/offering/UpdateOfferingAccess.vue diff --git a/ui/src/config/section/offering.js b/ui/src/config/section/offering.js index d3a4c25dd4a..14d29defeda 100644 --- a/ui/src/config/section/offering.js +++ b/ui/src/config/section/offering.js @@ -47,6 +47,13 @@ export default { label: 'Edit Offering', dataView: true, args: ['name', 'displaytext'] + }, { + api: 'updateServiceOffering', + icon: 'lock', + label: 'Update Offering Access', + dataView: true, + popup: true, + component: () => import('@/views/offering/UpdateOfferingAccess.vue') }, { api: 'deleteServiceOffering', icon: 'delete', @@ -111,6 +118,13 @@ export default { label: 'Edit Offering', dataView: true, args: ['name', 'displaytext'] + }, { + api: 'updateDiskOffering', + icon: 'lock', + label: 'Update Offering Access', + dataView: true, + popup: true, + component: () => import('@/views/offering/UpdateOfferingAccess.vue') }, { api: 'deleteDiskOffering', icon: 'delete', @@ -163,6 +177,13 @@ export default { value: (record) => { return 'Disabled' } } } + }, { + api: 'updateNetworkOffering', + icon: 'lock', + label: 'Update Offering Access', + dataView: true, + popup: true, + component: () => import('@/views/offering/UpdateOfferingAccess.vue') }, { api: 'deleteNetworkOffering', icon: 'delete', @@ -221,6 +242,13 @@ export default { value: (record) => { return 'Disabled' } } } + }, { + api: 'updateVPCOffering', + icon: 'lock', + label: 'Update Offering Access', + dataView: true, + popup: true, + component: () => import('@/views/offering/UpdateOfferingAccess.vue') }, { api: 'deleteVPCOffering', icon: 'delete', diff --git a/ui/src/views/offering/UpdateOfferingAccess.vue b/ui/src/views/offering/UpdateOfferingAccess.vue new file mode 100644 index 00000000000..4f34602b5d2 --- /dev/null +++ b/ui/src/views/offering/UpdateOfferingAccess.vue @@ -0,0 +1,294 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + + + + + +