backgroundColor of user-menu-avatar was hardcoded to primary color value instead of accessing it from @primary-color in config.json file. Updated the code to access the primary color from config.json (#7532)

This commit is contained in:
Ilham Al Rahm 2023-06-21 16:29:02 +05:30 committed by GitHub
parent e26d49de4d
commit 071a071434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,10 @@
<span v-if="image"> <span v-if="image">
<resource-icon :image="image" size="2x" style="margin-right: 5px"/> <resource-icon :image="image" size="2x" style="margin-right: 5px"/>
</span> </span>
<a-avatar v-else-if="userInitials" class="user-menu-avatar avatar" size="small" :style="{ backgroundColor: '#1890ff', color: 'white' }"> <a-avatar v-else-if="userInitials" class="user-menu-avatar avatar" size="small" :style="{ backgroundColor: $config.theme['@primary-color'], color: 'white' }">
{{ userInitials }} {{ userInitials }}
</a-avatar> </a-avatar>
<a-avatar v-else class="user-menu-avatar avatar" size="small" :style="{ backgroundColor: '#1890ff', color: 'white' }"> <a-avatar v-else class="user-menu-avatar avatar" size="small" :style="{ backgroundColor: $config.theme['@primary-color'], color: 'white' }">
<template #icon><user-outlined /></template> <template #icon><user-outlined /></template>
</a-avatar> </a-avatar>
<span>{{ nickname() }}</span> <span>{{ nickname() }}</span>