mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
e26d49de4d
commit
071a071434
@ -29,10 +29,10 @@
|
||||
<span v-if="image">
|
||||
<resource-icon :image="image" size="2x" style="margin-right: 5px"/>
|
||||
</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 }}
|
||||
</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>
|
||||
</a-avatar>
|
||||
<span>{{ nickname() }}</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user