From 21c2e30cfd6340363cd1cebf3773f0c55a0dfa26 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Mon, 16 Oct 2023 09:57:20 +0200 Subject: [PATCH] VNF/UI: display the default passwords in notification area --- ui/public/locales/en.json | 3 ++ ui/src/components/view/DetailsTab.vue | 6 +-- ui/src/views/compute/DeployVnfAppliance.vue | 52 ++++++++++++++------- 3 files changed, 40 insertions(+), 21 deletions(-) diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index ec730e8bb549..5c55f8b94246 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -1450,6 +1450,7 @@ "label.parentname": "Parent", "label.passive": "Passive", "label.password": "Password", +"label.password.default": "Default Password", "label.password.reset.confirm": "Password has been reset to ", "label.passwordenabled": "Password enabled", "label.path": "Path", @@ -3161,6 +3162,8 @@ "message.vm.state.stopping": "VM is being stopped.", "message.vm.state.unknown": "VM state is unknown.", "message.vnf.appliance.networks": "Please select networks for the new VNF appliance.", +"message.vnf.credentials.change": "Please change the password(s) of the VNF appliance immediately.", +"message.vnf.credentials.default": "The default credentials(s) of the VNF appliance", "message.vnf.credentials.in.template.vnf.details": "Please find the default credentials for this VNF in the details of the VNF template.", "message.vnf.error.deviceid.should.be.continuous": "The deviceid of selected VNF nics should be continuous.", "message.vnf.error.network.is.already.used": "Network has been used by multiple nics of the new VNF appliance.", diff --git a/ui/src/components/view/DetailsTab.vue b/ui/src/components/view/DetailsTab.vue index 48b6800d3fde..a6f77eacdd03 100644 --- a/ui/src/components/view/DetailsTab.vue +++ b/ui/src/components/view/DetailsTab.vue @@ -191,19 +191,19 @@ export default { credentials.push(this.$t('label.username') + ' : ' + username) } if (password) { - credentials.push(this.$t('label.password') + ' : ' + password) + credentials.push(this.$t('label.password.default') + ' : ' + password) } if (webUsername) { credentials.push('Web ' + this.$t('label.username') + ' : ' + webUsername) } if (webPassword) { - credentials.push('Web ' + this.$t('label.password') + ' : ' + webPassword) + credentials.push('Web ' + this.$t('label.password.default') + ' : ' + webPassword) } if (sshUsername) { credentials.push('SSH ' + this.$t('label.username') + ' : ' + sshUsername) } if (sshPassword) { - credentials.push('SSH ' + this.$t('label.password') + ' : ' + sshPassword) + credentials.push('SSH ' + this.$t('label.password.default') + ' : ' + sshPassword) } const managementDeviceIds = [] diff --git a/ui/src/views/compute/DeployVnfAppliance.vue b/ui/src/views/compute/DeployVnfAppliance.vue index 6b0e68402646..146934f90d41 100644 --- a/ui/src/views/compute/DeployVnfAppliance.vue +++ b/ui/src/views/compute/DeployVnfAppliance.vue @@ -853,8 +853,7 @@