diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-05-29 18:21:32 -0700 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-05-29 18:21:32 -0700 |
commit | 9814a037a5158d31c77fecc8bfb3b61b45d015b3 (patch) | |
tree | f662995c5fc6dc7d796b46e501950aba9cb4d482 /src/components/SettingToggle.vue | |
parent | e11427508a89cddb114b7955a2273fc7b5e33ca5 (diff) | |
download | homer-9814a037a5158d31c77fecc8bfb3b61b45d015b3.tar.gz homer-9814a037a5158d31c77fecc8bfb3b61b45d015b3.tar.zst homer-9814a037a5158d31c77fecc8bfb3b61b45d015b3.zip |
Pure CSS font awesome icon
Diffstat (limited to 'src/components/SettingToggle.vue')
-rw-r--r-- | src/components/SettingToggle.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/SettingToggle.vue b/src/components/SettingToggle.vue index 94655bc..864a497 100644 --- a/src/components/SettingToggle.vue +++ b/src/components/SettingToggle.vue | |||
@@ -1,7 +1,6 @@ | |||
1 | <template> | 1 | <template> |
2 | <a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile"> | 2 | <a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile"> |
3 | <span v-show="value"><i :class="['fas', icon]"></i></span> | 3 | <span><i :class="['fas', value ? icon : iconAlt]"></i></span> |
4 | <span v-show="!value"><i :class="['fas', iconAlt]"></i></span> | ||
5 | <slot></slot> | 4 | <slot></slot> |
6 | </a> | 5 | </a> |
7 | </template> | 6 | </template> |