Commit 90520dc
committed
fix: restore custom menu functionality after refactoring
- Initialize this.customMenu in node_helper start()
- Create dedicated nav element for custom menus in createDynamicMenu()
- Add dynamic menu title support in updateHeaderTitle()
- Copy custom_menu.example.json to config directory in demo setup
The custom menu feature was broken after refactoring because items were
inserted into the wrong nav container and customMenu object was not
initialized, causing menu items to not display correctly.1 parent 8f3dc99 commit 90520dc
3 files changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
1281 | 1282 | | |
1282 | 1283 | | |
1283 | 1284 | | |
| 1285 | + | |
1284 | 1286 | | |
1285 | 1287 | | |
1286 | 1288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
467 | 474 | | |
468 | 475 | | |
469 | 476 | | |
| |||
2083 | 2090 | | |
2084 | 2091 | | |
2085 | 2092 | | |
2086 | | - | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
2087 | 2116 | | |
2088 | 2117 | | |
2089 | 2118 | | |
| |||
0 commit comments