Bugzilla – Attachment 154212 Details for
Bug 34418
Allow empty nodes in breadcrumb's elements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34418: Add is_empty flag
Bug-34418-Add-isempty-flag.patch (text/plain), 1.56 KB, created by
Jonathan Druart
on 2023-08-03 08:33:04 UTC
(
hide
)
Description:
Bug 34418: Add is_empty flag
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-08-03 08:33:04 UTC
Size:
1.56 KB
patch
obsolete
>From ae55ea4516fa4b5ec157a48f71d2d93f1e356389 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 26 Jul 2023 13:32:28 +0200 >Subject: [PATCH] Bug 34418: Add is_empty flag > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js >index f7ab99d55ff..5df32a53e16 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js >@@ -115,16 +115,20 @@ export const useNavigationStore = defineStore("navigation", { > return child.is_base || (child.path && child.path !== ""); > } > >+ function _isEmptyNode(child) { >+ return !child.is_empty; >+ } >+ > function _mapMatches(currentMatches) { > return currentMatches > .filter(match => _isBaseOrNotStub(match.meta.self)) >+ .filter(match => _isEmptyNode(match.meta.self)) > .map(match => ({ > ...match.meta.self, > icon: null, > path: match.path, > children: null, >- })) >- .filter(match => match.title); >+ })); > } > }, > leftNavigation() { >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34418
:
153902
|
153903
|
153904
|
153905
|
153910
|
153911
|
153912
|
153913
|
153983
|
154095
|
154210
|
154211
|
154212
|
154213
|
154214
|
155098
|
155099
|
155100
|
155101
|
155102