You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/05/09 05:22:25 UTC

[cloudstack-primate] branch master updated: autogenview: remove unnecessary changes

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 bfcbaa3  autogenview: remove unnecessary changes
bfcbaa3 is described below

commit bfcbaa3ffb4406f6b5bd1b7eb29df91fccb4d83a
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Sat May 9 10:51:43 2020 +0530

    autogenview: remove unnecessary changes
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/views/AutogenView.vue | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index b78d3f6..3eb17fe 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -553,13 +553,6 @@ export default {
         this.loading = false
       })
     },
-    removeStringStartSubstringIfPresent (str, searchstr) {
-      var index = str.indexOf(searchstr)
-      if (index !== 0) {
-        return str
-      }
-      return str.slice(index + searchstr.length)
-    },
     onSearch (value) {
       this.searchQuery = value
       this.page = 1
@@ -622,8 +615,6 @@ export default {
       }
       var paramName = param.name
       var extractedParamName = paramName.replace('ids', '').replace('id', '').toLowerCase()
-      extractedParamName = this.removeStringStartSubstringIfPresent(extractedParamName, 'source')
-      extractedParamName = this.removeStringStartSubstringIfPresent(extractedParamName, 'dest')
       var params = { listall: true }
       const possibleName = 'list' + extractedParamName + 's'
       var possibleApi
@@ -707,7 +698,6 @@ export default {
         let fieldName = null
         if (field.type === 'uuid' || field.type === 'list' || field.name === 'account' || (this.currentAction.mapping && field.name in this.currentAction.mapping)) {
           fieldName = field.name.replace('ids', 'name').replace('id', 'name')
-          fieldName = this.removeStringStartSubstringIfPresent(fieldName, 'source')
         } else {
           fieldName = field.name
         }