From 9e3b96c8e484a29162c0bb228a88e6c3e88a040a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 10 May 2016 16:15:38 -0400 Subject: [PATCH] Support for adding extra links to the hamburger general area --- .../javascripts/discourse/widgets/hamburger-menu.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 index 2d4c22323f9..9201b70bdf0 100644 --- a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 @@ -87,7 +87,9 @@ export default createWidget('hamburger-menu', { links.push({ route: 'tags', label: 'tagging.tags' }); } - return links.map(l => this.attach('link', l)); + const extraLinks = applyDecorators(this, 'generalLinks', this.attrs, this.state); + + return links.concat(extraLinks).map(l => this.attach('link', l)); }, listCategories() {