From c1eec2b261a6ada2a64c6544e4075b63962c4ac8 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sun, 12 Mar 2017 23:03:46 +0100 Subject: [PATCH] Fix indentation --- js/forum/src/components/HeaderSecondary.js | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/js/forum/src/components/HeaderSecondary.js b/js/forum/src/components/HeaderSecondary.js index 199a86252..a59ec265a 100644 --- a/js/forum/src/components/HeaderSecondary.js +++ b/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); }