diff --git a/ui/src/config/section/infra/phynetworks.js b/ui/src/config/section/infra/phynetworks.js index 5af1a9660d0..7545815f99c 100644 --- a/ui/src/config/section/infra/phynetworks.js +++ b/ui/src/config/section/infra/phynetworks.js @@ -84,14 +84,14 @@ export default { { api: 'updatePhysicalNetwork', icon: 'edit', - label: 'Update Physical Network', + label: 'label.update.physical.network', dataView: true, args: ['vlan', 'tags'] }, { api: 'addTrafficType', icon: 'plus-square', - label: 'Add Traffic Type', + label: 'label.add.traffic.type', dataView: true, args: ['traffictype', 'physicalnetworkid', 'isolationmethod'], mapping: { @@ -109,15 +109,10 @@ export default { { api: 'updateTrafficType', icon: 'branches', - label: 'Update Traffic Labels', + label: 'label.update.traffic.label', dataView: true, - args: ['id', 'kvmnetworklabel', 'vmwarenetworklabel', 'xennetworklabel', 'hypervnetworklabel', 'ovm3networklabel'], - mapping: { - id: { - api: 'listTrafficTypes', - params: (record) => { return { physicalnetworkid: record.id } } - } - } + popup: true, + component: () => import('@/views/infra/network/EditTrafficLabel.vue') }, { api: 'deletePhysicalNetwork', diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json index 54ab5addaa7..5317922693c 100644 --- a/ui/src/locales/en.json +++ b/ui/src/locales/en.json @@ -362,6 +362,7 @@ "label.add.template": "Add Template", "label.add.to.group": "Add to group", "label.add.traffic": "Add Traffic", +"label.add.traffic.type": "Add Traffic Type", "label.add.ucs.manager": "Add UCS Manager", "label.add.user": "Add User", "label.add.vlan": "Add VLAN", @@ -2129,11 +2130,13 @@ "label.unlimited": "Unlimited", "label.untagged": "Untagged", "label.update.instance.group": "Update Instance Group", +"label.update.physical.network": "Update Physical Network", "label.update.project.resources": "Update project resources", "label.update.project.role": "Update project role", "label.update.ssl": " SSL Certificate", "label.update.ssl.cert": " SSL Certificate", "label.update.to": "updated to", +"label.update.traffic.label": "Update Traffic Labels", "label.update.vmware.datacenter": "Update VMware Datacenter", "label.updating": "Updating", "label.upgrade.router.newer.template": "Upgrade Router to Use Newer Template", diff --git a/ui/src/views/infra/network/EditTrafficLabel.vue b/ui/src/views/infra/network/EditTrafficLabel.vue new file mode 100644 index 00000000000..e36b70b8ba3 --- /dev/null +++ b/ui/src/views/infra/network/EditTrafficLabel.vue @@ -0,0 +1,235 @@ +// 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. + + + + + +