This is an automated email from the ASF dual-hosted git repository.
weizhou pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new 59e054396a8 UI: Fix all list items appearing twice in search view
(#10365)
59e054396a8 is described below
commit 59e054396a8f23ed003ff276c784adc2ab1e1a92
Author: Pearl Dsilva <[email protected]>
AuthorDate: Wed Feb 12 11:18:14 2025 -0500
UI: Fix all list items appearing twice in search view (#10365)
* UI: Fix all list items appearing twice in search view
* Revert "UI: Fix all list items appearing twice in search view"
This reverts commit 2739c0112c519406cc46394948fcad6020bcdb62.
* fix duplicate option names on list filters
---------
Co-authored-by: Bernardo De Marco Gonçalves <[email protected]>
---
ui/src/components/view/SearchView.vue | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/ui/src/components/view/SearchView.vue
b/ui/src/components/view/SearchView.vue
index d8cdf078e5c..d0e962c58e5 100644
--- a/ui/src/components/view/SearchView.vue
+++ b/ui/src/components/view/SearchView.vue
@@ -80,7 +80,7 @@
</span>
<global-outlined v-else style="margin-right: 5px" />
</span>
- <span v-if="(field.name.startsWith('domain') ||
field.name === 'account')">
+ <span v-if="(field.name.startsWith('domain') ||
field.name === 'account' || field.name.startsWith('associatednetwork'))">
<span v-if="opt.icon">
<resource-icon :image="opt.icon.base64image"
size="1x" style="margin-right: 5px"/>
</span>
@@ -90,13 +90,6 @@
<status :text="opt.state" />
</span>
{{ $t((['storageid'].includes(field.name) ||
!opt.path) ? opt.name : opt.path) }}
- <span
v-if="(field.name.startsWith('associatednetwork'))">
- <span v-if="opt.icon">
- <resource-icon :image="opt.icon.base64image"
size="1x" style="margin-right: 5px"/>
- </span>
- <block-outlined v-else style="margin-right: 5px" />
- </span>
- {{ $t(opt.path || opt.name) }}
</div>
</a-select-option>
</a-select>