From b68d7c61070973ab75d22ff8de93a9e0ba930a24 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sun, 12 Mar 2017 23:03:46 +0100 Subject: [PATCH] Fix indentation --- .../forum/src/components/HeaderSecondary.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/framework/core/js/forum/src/components/HeaderSecondary.js b/framework/core/js/forum/src/components/HeaderSecondary.js index 199a86252..a59ec265a 100644 --- a/framework/core/js/forum/src/components/HeaderSecondary.js +++ b/framework/core/js/forum/src/components/HeaderSecondary.js @@ -44,23 +44,23 @@ export default class HeaderSecondary extends Component { for (const locale in app.data.locales) { locales.push(Button.component({ - active: app.data.locale === locale, - children: app.data.locales[locale], - icon: app.data.locale === locale ? 'check' : true, - onclick: () => { - if (app.session.user) { - app.session.user.savePreferences({locale}).then(() => window.location.reload()); - } else { - document.cookie = `locale=${locale}; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT`; - window.location.reload(); - } + active: app.data.locale === locale, + children: app.data.locales[locale], + icon: app.data.locale === locale ? 'check' : true, + onclick: () => { + if (app.session.user) { + app.session.user.savePreferences({locale}).then(() => window.location.reload()); + } else { + document.cookie = `locale=${locale}; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT`; + window.location.reload(); } + } })); } items.add('locale', SelectDropdown.component({ - children: locales, - buttonClassName: 'Button Button--link' + children: locales, + buttonClassName: 'Button Button--link' }), 20); }