From dbf79113082f2a4b3562405adffcadc246a35259 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Mon, 17 Oct 2022 15:16:07 +0300 Subject: [PATCH] Refactored theme toggler --- app/components/theme-toggler.hbs | 12 +++++++++--- app/components/theme-toggler.js | 24 +++++++++++------------- app/index.html | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/app/components/theme-toggler.hbs b/app/components/theme-toggler.hbs index 923de83..6bc2e6d 100644 --- a/app/components/theme-toggler.hbs +++ b/app/components/theme-toggler.hbs @@ -1,10 +1,16 @@ -
+
{{#each this.themes as |item|}} - {{#let (eq item.id this.theme) as |selected|}} + {{#let (eq item.id this.session.data.theme) as |selected|}}