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 <bernardomg2004@gmail.com>
This commit is contained in:
Pearl Dsilva 2025-02-12 11:18:14 -05:00 committed by GitHub
parent 4f3e8e8c5a
commit 59e054396a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@
</span> </span>
<global-outlined v-else style="margin-right: 5px" /> <global-outlined v-else style="margin-right: 5px" />
</span> </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"> <span v-if="opt.icon">
<resource-icon :image="opt.icon.base64image" size="1x" style="margin-right: 5px"/> <resource-icon :image="opt.icon.base64image" size="1x" style="margin-right: 5px"/>
</span> </span>
@ -90,13 +90,6 @@
<status :text="opt.state" /> <status :text="opt.state" />
</span> </span>
{{ $t((['storageid'].includes(field.name) || !opt.path) ? opt.name : opt.path) }} {{ $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> </div>
</a-select-option> </a-select-option>
</a-select> </a-select>