mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
5ee41a51c9
commit
240c241ee8
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user