Fixed issue in collection color reading for tables that weren't configured in directus yet (#6052)

Fixes #6050
This commit is contained in:
Rijk van Zanten
2021-06-03 21:16:38 -04:00
committed by GitHub
parent fe659ec32a
commit 58e38b68ae
4 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<private-view v-else :title="bookmark ? bookmarkTitle : currentCollection.name">
<template #title-outer:prepend>
<v-button class="header-icon" rounded icon secondary disabled>
<v-icon :name="currentCollection.icon" :color="currentCollection.meta.color" />
<v-icon :name="currentCollection.icon" :color="currentCollection.color" />
</v-button>
</template>

View File

@@ -45,7 +45,7 @@
unmanaged: item.meta === null && item.collection.startsWith('directus_') === false,
}"
:name="item.icon"
:color="item.meta.color"
:color="item.color"
/>
</template>