From 81b49b835a477ed555decd43627d8ba7dc4f6e98 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 7 Feb 2022 16:30:40 +0530 Subject: [PATCH] ui: fix select networks for template nic (#5933) * ui: fix select networks for template nic Fixes #5927 Signed-off-by: Abhishek Kumar --- ui/public/locales/en.json | 2 + .../InstanceNicsNetworkSelectListView.vue | 149 ++++++++++++ .../components/view/NicNetworkSelectForm.vue | 228 ++++++++++++++++++ ui/src/views/compute/DeployVM.vue | 62 +++-- 4 files changed, 407 insertions(+), 34 deletions(-) create mode 100644 ui/src/components/view/InstanceNicsNetworkSelectListView.vue create mode 100644 ui/src/components/view/NicNetworkSelectForm.vue diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index 60dbff4444b..7504bb7ef4d 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -552,6 +552,7 @@ "label.certificate.upload.failed": "Certificate Upload Failed", "label.certificate.upload.failed.description": "Failed to update SSL Certificate. Failed to pass certificate validation check", "label.certificateid": "Certificate ID", +"label.change": "Change", "label.change.affinity": "Change Affinity", "label.change.ip.addess": "Change IP Address", "label.change.ipaddress": "Change IP address for NIC", @@ -1978,6 +1979,7 @@ "label.select.instance": "Select instance", "label.select.instance.to.attach.volume.to": "Select instance to attach volume to", "label.select.iso.or.template": "Select ISO or template", +"label.select.network": "Select Network", "label.select.offering": "Select offering", "label.select.project": "Select Project", "label.select.projects": "Select Projects", diff --git a/ui/src/components/view/InstanceNicsNetworkSelectListView.vue b/ui/src/components/view/InstanceNicsNetworkSelectListView.vue new file mode 100644 index 00000000000..42b61624a7e --- /dev/null +++ b/ui/src/components/view/InstanceNicsNetworkSelectListView.vue @@ -0,0 +1,149 @@ +// 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. + + + + + + diff --git a/ui/src/components/view/NicNetworkSelectForm.vue b/ui/src/components/view/NicNetworkSelectForm.vue new file mode 100644 index 00000000000..8c1b59db14f --- /dev/null +++ b/ui/src/components/view/NicNetworkSelectForm.vue @@ -0,0 +1,228 @@ +// 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. + + + + + + diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue index cbabe796ff4..3c330e1278d 100644 --- a/ui/src/views/compute/DeployVM.vue +++ b/ui/src/views/compute/DeployVM.vue @@ -330,31 +330,10 @@