Bugzilla – Attachment 155100 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.61 KB, created by
Pedro Amorim
on 2023-09-01 11:11:18 UTC
(
hide
)
Description:
Bug 34418: Add is_empty flag
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-09-01 11:11:18 UTC
Size:
1.61 KB
patch
obsolete
>From 74aa68f7a954e299c01ac71bef71f1f91aece9ca 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> >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >--- > 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 f7ab99d55f..5df32a53e1 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.30.2
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