mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
add admin portal logo
This commit is contained in:
committed by
Mohit Panjwani
parent
f594556de0
commit
c194e98a7b
@ -33,7 +33,8 @@
|
||||
md:block
|
||||
"
|
||||
>
|
||||
<MainLogo class="h-6" light-color="white" dark-color="white" />
|
||||
<img v-if="adminLogo" :src="adminLogo" class="h-6" />
|
||||
<MainLogo v-else class="h-6" light-color="white" dark-color="white" />
|
||||
</router-link>
|
||||
|
||||
<!-- toggle button-->
|
||||
@ -195,6 +196,14 @@ const previewAvatar = computed(() => {
|
||||
: getDefaultAvatar()
|
||||
})
|
||||
|
||||
const adminLogo = computed(() => {
|
||||
if (globalStore.globalSettings.admin_portal_logo) {
|
||||
return '/storage/' + globalStore.globalSettings.admin_portal_logo
|
||||
}
|
||||
|
||||
return false
|
||||
})
|
||||
|
||||
function getDefaultAvatar() {
|
||||
const imgUrl = new URL('/img/default-avatar.jpg', import.meta.url)
|
||||
return imgUrl
|
||||
|
||||
Reference in New Issue
Block a user