Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions core/frontend/src/components/kraken/cards/StoreExtensionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,16 @@ export default Vue.extend({
return this.has_update_available ? 'UPDATE' : 'INSTALLED'
},
architecture_list_style(): Record<string, string> {
const style: Record<string, string> = {
color: this.is_card_dominant_color_light ? 'black' : 'white',
if (this.card_dominant_color === undefined) {
return {
color: this.$vuetify.theme.dark ? 'white' : 'black',
}
}

if (this.card_dominant_color) {
style.backgroundColor = this.card_dominant_color
return {
color: this.is_card_dominant_color_light ? 'black' : 'white',
backgroundColor: this.card_dominant_color,
}

return style
},
extension_company(): string {
return getLatestVersion(this.extension.versions)?.company?.name ?? 'Unknown'
Expand Down