locales: Translation, notification, API request (#902)

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Pearl Dsilva 2020-12-21 16:51:57 +05:30 committed by Rohit Yadav
parent 5ee41a51c9
commit 240c241ee8
3 changed files with 6 additions and 4 deletions

View File

@ -1934,6 +1934,8 @@
"label.shrinkok": "Shrink OK",
"label.shutdown.provider": "Shutdown provider",
"label.simplified.chinese.keyboard": "Simplified Chinese keyboard",
"label.s2scustomergatewayid": "Site to Site customer gateway ID",
"label.s2svpngatewayid": "Site to Site VPN gateway ID",
"label.site.to.site.vpn": "Site-to-site VPN",
"label.site.to.site.vpn.connections": "Site-to-site VPN Connections",
"label.size": "Size",

View File

@ -996,7 +996,7 @@ export default {
}
const resourceName = params.displayname || params.displaytext || params.name || params.hostname || params.username ||
params.ipaddress || params.virtualmachinename || this.resource.name || this.resource.ipaddress
params.ipaddress || params.virtualmachinename || this.resource.name || this.resource.ipaddress || this.resource.id
var hasJobId = false
this.actionLoading = true

View File

@ -593,8 +593,8 @@ export default {
} else if (values.protocol === 'SMB') {
url = this.smbURL(server, path)
const smbParams = {
user: values.smbUsername,
password: values.smbPassword,
user: encodeURIComponent(values.smbUsername),
password: encodeURIComponent(values.smbPassword),
domain: values.smbDomain
}
Object.keys(smbParams).forEach((key, index) => {
@ -669,7 +669,7 @@ export default {
params.tags = this.selectedTags.join()
}
this.loading = true
api('createStoragePool', params).then(json => {
api('createStoragePool', {}, 'POST', params).then(json => {
this.$notification.success({
message: this.$t('label.add.primary.storage'),
description: this.$t('label.add.primary.storage')