View | Details | Raw Unified | Return to bug 34418
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js (-3 / +6 lines)
Lines 115-130 export const useNavigationStore = defineStore("navigation", { Link Here
115
                return child.is_base || (child.path && child.path !== "");
115
                return child.is_base || (child.path && child.path !== "");
116
            }
116
            }
117
117
118
            function _isEmptyNode(child) {
119
                return !child.is_empty;
120
            }
121
118
            function _mapMatches(currentMatches) {
122
            function _mapMatches(currentMatches) {
119
                return currentMatches
123
                return currentMatches
120
                    .filter(match => _isBaseOrNotStub(match.meta.self))
124
                    .filter(match => _isBaseOrNotStub(match.meta.self))
125
                    .filter(match => _isEmptyNode(match.meta.self))
121
                    .map(match => ({
126
                    .map(match => ({
122
                        ...match.meta.self,
127
                        ...match.meta.self,
123
                        icon: null,
128
                        icon: null,
124
                        path: match.path,
129
                        path: match.path,
125
                        children: null,
130
                        children: null,
126
                    }))
131
                    }));
127
                    .filter(match => match.title);
128
            }
132
            }
129
        },
133
        },
130
        leftNavigation() {
134
        leftNavigation() {
131
- 

Return to bug 34418