adminforth 2.25.0-next.2 → 2.25.0-next.3

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.
@@ -92,6 +92,7 @@ export const useCoreStore = defineStore('core', () => {
92
92
 
93
93
  // console.log('🔔 subscribeToMenuBadges', mi.badge, JSON.stringify(mi));
94
94
  if (mi.badge !== undefined) {
95
+ websocket.unsubscribe(`/opentopic/update-menu-badge/${mi.itemId}`);
95
96
  websocket.subscribe(`/opentopic/update-menu-badge/${mi.itemId}`, ({ badge }) => {
96
97
  mi.badge = badge;
97
98
  });
@@ -121,8 +122,6 @@ export const useCoreStore = defineStore('core', () => {
121
122
  item.badge = badge;
122
123
  }
123
124
  });
124
- // TODO: This thing was created for something. Find out why
125
- // websocket.unsubscribeAll();
126
125
  subscribeToMenuBadges();
127
126
 
128
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.25.0-next.2",
3
+ "version": "2.25.0-next.3",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",