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/07/15 10:08:41 UTC
[cloudstack-primate] branch master updated: autogenview: fix
showunique case for templates/isos and filter
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 c05f527 autogenview: fix showunique case for templates/isos and filter
c05f527 is described below
commit c05f527d9ad17c55b032ae3a48e8a24eef7a120d
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Jul 15 15:38:11 2020 +0530
autogenview: fix showunique case for templates/isos and filter
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
src/views/AutogenView.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index ce75d0c..fc80e42 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -45,7 +45,7 @@
<a-select
v-if="!dataView && $route.meta.filters && $route.meta.filters.length > 0"
:placeholder="$t('label.filterby')"
- :value="$route.query.filter"
+ :value="$route.query.filter || 'self'"
style="min-width: 100px; margin-left: 10px"
@change="changeFilter">
<a-icon slot="suffixIcon" type="filter" />
@@ -534,6 +534,10 @@ export default {
})
}
+ if (['listTemplates', 'listIsos'].includes(this.apiName) && this.dataView) {
+ delete params.showunique
+ }
+
this.loading = true
if (this.$route.params && this.$route.params.id) {
params.id = this.$route.params.id
@@ -571,10 +575,6 @@ export default {
this.items = []
}
- if (['listTemplates', 'listIsos'].includes(this.apiName) && this.items.length > 1) {
- this.items = [...new Map(this.items.map(x => [x.id, x])).values()]
- }
-
for (let idx = 0; idx < this.items.length; idx++) {
this.items[idx].key = idx
for (const key in customRender) {