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.
@@ -52,7 +52,7 @@
52
52
  </div>
53
53
 
54
54
  <ul class="py-1" role="none">
55
- <li v-for="c in coreStore?.config?.globalInjections?.userMenu || []" class="bg-lightUserMenuItemBackground hover:bg-lightUserMenuItemBackgroundHover text-lightUserMenuItemText hover:text-lightUserMenuItemText dark:bg-darkUserMenuItemBackground dark:hover:bg-darkUserMenuItemBackgroundHover dark:text-darkUserMenuItemText dark:hover:darkUserMenuItemTextHover" >
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.311",
3
+ "version": "2.4.0-next.312",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",