From e8dd7563453ecb07d47b9e17c2b2ab6cd3082b5c Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Mon, 9 Dec 2019 14:28:41 +0100 Subject: [PATCH] Allow extensions to place items between tags link and tags list This PR sets the priority of the tags list to -12, to allow placing a menu link on -11 between the link and the list. Issue here: https://github.com/flarum/core/issues/1923 --- extensions/tags/js/src/forum/addTagList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/tags/js/src/forum/addTagList.js b/extensions/tags/js/src/forum/addTagList.js index 1ab0b9831..84eb98c1c 100644 --- a/extensions/tags/js/src/forum/addTagList.js +++ b/extensions/tags/js/src/forum/addTagList.js @@ -19,7 +19,7 @@ export default function() { if (app.current instanceof TagsPage) return; - items.add('separator', Separator.component(), -10); + items.add('separator', Separator.component(), -12); const params = this.stickyParams(); const tags = app.store.all('tags'); @@ -32,7 +32,7 @@ export default function() { active = currentTag.parent() === tag; } - items.add('tag' + tag.id(), TagLinkButton.component({tag, params, active}), -10); + items.add('tag' + tag.id(), TagLinkButton.component({tag, params, active}), -12); }; sortTags(tags) @@ -49,7 +49,7 @@ export default function() { items.add('moreTags', LinkButton.component({ children: app.translator.trans('flarum-tags.forum.index.more_link'), href: app.route('tags') - }), -10); + }), -12); } }); }