mediacube-ui 0.1.90 → 0.1.92
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.92](https://github.com/MediaCubeCo/mcui/compare/v0.1.91...v0.1.92) (2023-07-25)
|
|
6
|
+
|
|
7
|
+
### [0.1.91](https://github.com/MediaCubeCo/mcui/compare/v0.1.90...v0.1.91) (2023-07-25)
|
|
8
|
+
|
|
5
9
|
### [0.1.90](https://github.com/MediaCubeCo/mcui/compare/v0.1.89...v0.1.90) (2023-07-24)
|
|
6
10
|
|
|
7
11
|
### [0.1.89](https://github.com/MediaCubeCo/mcui/compare/v0.1.88...v0.1.89) (2023-07-24)
|
package/package.json
CHANGED
|
@@ -189,6 +189,14 @@ export default {
|
|
|
189
189
|
const route = this.preparedMainMenu.find(r => r.to === newRoute.path)
|
|
190
190
|
route?.menu && !this.compact && (route.open = true)
|
|
191
191
|
}
|
|
192
|
+
this.$nextTick(() => {
|
|
193
|
+
this.preparedMainMenu.forEach(mi => {
|
|
194
|
+
const exact_route = mi.to === newRoute.path
|
|
195
|
+
const route_menu_match_new_route =
|
|
196
|
+
mi.menu && mi.menu.some(mim => mim.to?.match(newRoute.path) || newRoute.path?.match(mim.to))
|
|
197
|
+
if (!(exact_route || route_menu_match_new_route)) mi.open = false
|
|
198
|
+
})
|
|
199
|
+
})
|
|
192
200
|
},
|
|
193
201
|
},
|
|
194
202
|
created() {
|