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/03/05 09:48:27 UTC
[cloudstack-primate] branch master updated: autogen: handle search
query param for listRoles
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 c89e211 autogen: handle search query param for listRoles
c89e211 is described below
commit c89e21194d749498fc45532c3c5ccdc6183e6e57
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Thu Mar 5 15:17:48 2020 +0530
autogen: handle search query param for listRoles
Fixes #181
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
src/views/AutogenView.vue | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index 460ccc8..40b9107 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -360,10 +360,6 @@ export default {
Object.assign(params, this.$route.meta.params)
}
- if (this.searchQuery !== '') {
- params.keyword = this.searchQuery
- }
-
this.treeView = this.$route && this.$route.meta && this.$route.meta.treeView
if (this.$route && this.$route.params && this.$route.params.id) {
@@ -389,6 +385,14 @@ export default {
return
}
+ if (this.searchQuery !== '') {
+ if (this.apiName === 'listRoles') {
+ params.name = this.searchQuery
+ } else {
+ params.keyword = this.searchQuery
+ }
+ }
+
if (!this.columnKeys || this.columnKeys.length === 0) {
for (const field of store.getters.apis[this.apiName].response) {
this.columnKeys.push(field.name)