This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 07a8bdb  locales: Translation, notification, API request (#902)
07a8bdb is described below

commit 07a8bdb52b787b0bf3a33c08c32ae173b4f87af3
Author: Pearl Dsilva <[email protected]>
AuthorDate: Mon Dec 21 16:51:57 2020 +0530

    locales: Translation, notification, API request (#902)
    
    Co-authored-by: Pearl Dsilva <[email protected]>
---
 src/locales/en.json                   | 2 ++
 src/views/AutogenView.vue             | 2 +-
 src/views/infra/AddPrimaryStorage.vue | 6 +++---
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/locales/en.json b/src/locales/en.json
index 2c01560..314d747 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -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",
diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index fa7e95a..c9b3a82 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -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
diff --git a/src/views/infra/AddPrimaryStorage.vue 
b/src/views/infra/AddPrimaryStorage.vue
index dc74d68..8229abe 100644
--- a/src/views/infra/AddPrimaryStorage.vue
+++ b/src/views/infra/AddPrimaryStorage.vue
@@ -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')

Reply via email to