Skip to content

Commit 240c241

Browse files
Pearl1594Pearl Dsilva
authored andcommitted
locales: Translation, notification, API request (#902)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 5ee41a5 commit 240c241

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

ui/src/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,8 @@
19341934
"label.shrinkok": "Shrink OK",
19351935
"label.shutdown.provider": "Shutdown provider",
19361936
"label.simplified.chinese.keyboard": "Simplified Chinese keyboard",
1937+
"label.s2scustomergatewayid": "Site to Site customer gateway ID",
1938+
"label.s2svpngatewayid": "Site to Site VPN gateway ID",
19371939
"label.site.to.site.vpn": "Site-to-site VPN",
19381940
"label.site.to.site.vpn.connections": "Site-to-site VPN Connections",
19391941
"label.size": "Size",

ui/src/views/AutogenView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ export default {
996996
}
997997
998998
const resourceName = params.displayname || params.displaytext || params.name || params.hostname || params.username ||
999-
params.ipaddress || params.virtualmachinename || this.resource.name || this.resource.ipaddress
999+
params.ipaddress || params.virtualmachinename || this.resource.name || this.resource.ipaddress || this.resource.id
10001000
10011001
var hasJobId = false
10021002
this.actionLoading = true

ui/src/views/infra/AddPrimaryStorage.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ export default {
593593
} else if (values.protocol === 'SMB') {
594594
url = this.smbURL(server, path)
595595
const smbParams = {
596-
user: values.smbUsername,
597-
password: values.smbPassword,
596+
user: encodeURIComponent(values.smbUsername),
597+
password: encodeURIComponent(values.smbPassword),
598598
domain: values.smbDomain
599599
}
600600
Object.keys(smbParams).forEach((key, index) => {
@@ -669,7 +669,7 @@ export default {
669669
params.tags = this.selectedTags.join()
670670
}
671671
this.loading = true
672-
api('createStoragePool', params).then(json => {
672+
api('createStoragePool', {}, 'POST', params).then(json => {
673673
this.$notification.success({
674674
message: this.$t('label.add.primary.storage'),
675675
description: this.$t('label.add.primary.storage')

0 commit comments

Comments
 (0)