fix: render icon of view selector using icon component
This commit is contained in:
parent
2b9c583b5d
commit
c6f2f82940
@ -22,19 +22,7 @@
|
|||||||
:label="__(viewControls.currentView.label)"
|
:label="__(viewControls.currentView.label)"
|
||||||
>
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<div v-if="isEmoji(viewControls.currentView.icon)">
|
<Icon :icon="viewControls.currentView.icon" class="h-4" />
|
||||||
{{ viewControls.currentView.icon }}
|
|
||||||
</div>
|
|
||||||
<FeatherIcon
|
|
||||||
v-else-if="typeof viewControls.currentView.icon == 'string'"
|
|
||||||
:name="viewControls.currentView.icon"
|
|
||||||
class="h-4"
|
|
||||||
/>
|
|
||||||
<component
|
|
||||||
v-else
|
|
||||||
:is="viewControls.currentView.icon"
|
|
||||||
class="h-4"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
<FeatherIcon
|
<FeatherIcon
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user