From 8e75f8c3716c3c9b80febb243356543392323656 Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 2 Jun 2022 10:13:41 -0400 Subject: [PATCH] DEV: quick-access-panel setting for viewAllLabel (#16977) --- .../javascripts/discourse/app/widgets/quick-access-panel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js b/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js index 16b6fff5cd9..6c8036f5e53 100644 --- a/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js +++ b/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js @@ -17,6 +17,9 @@ export default createWidget("quick-access-panel", { tagName: "div.quick-access-panel", emptyStatePlaceholderItemKey: null, emptyStateWidget: null, + settings: { + viewAllLabel: null, + }, buildKey: () => { throw Error('Cannot attach abstract widget "quick-access-panel".'); @@ -128,6 +131,7 @@ export default createWidget("quick-access-panel", { title: "view_all", titleOptions: { tab }, icon: "chevron-down", + label: this.settings.viewAllLabel, className: "btn btn-default btn-icon no-text show-all", "aria-label": "view_all", ariaLabelOptions: { tab },