adminforth 2.4.0-next.311 → 2.4.0-next.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/spa/src/App.vue +5 -1
- package/package.json +1 -1
package/dist/spa/src/App.vue
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
</div>
|
|
53
53
|
|
|
54
54
|
<ul class="py-1" role="none">
|
|
55
|
-
<li v-for="c in
|
|
55
|
+
<li v-for="c in userMenuComponents" class="bg-lightUserMenuItemBackground hover:bg-lightUserMenuItemBackgroundHover text-lightUserMenuItemText hover:text-lightUserMenuItemText dark:bg-darkUserMenuItemBackground dark:hover:bg-darkUserMenuItemBackgroundHover dark:text-darkUserMenuItemText dark:hover:darkUserMenuItemTextHover" >
|
|
56
56
|
<component
|
|
57
57
|
:is="getCustomComponent(c)"
|
|
58
58
|
:meta="c.meta"
|
|
@@ -202,6 +202,10 @@ const loggedIn = computed(() => !!coreStore?.adminUser);
|
|
|
202
202
|
|
|
203
203
|
const theme = ref('light');
|
|
204
204
|
|
|
205
|
+
const userMenuComponents = computed(() => {
|
|
206
|
+
return coreStore?.config?.globalInjections?.userMenu || [];
|
|
207
|
+
})
|
|
208
|
+
|
|
205
209
|
function hideSidebar(): void {
|
|
206
210
|
sideBarOpen.value = false;
|
|
207
211
|
}
|