feat: shortcuts indicator toggle

This commit is contained in:
liyasthomas
2021-07-19 22:12:56 +05:30
parent ae8cf656a3
commit 88ccda8fd1
6 changed files with 51 additions and 7 deletions

View File

@@ -171,6 +171,17 @@
{{ TELEMETRY_ENABLED ? $t("enabled") : $t("disabled") }}
</SmartToggle>
</div>
<div class="flex items-center">
<SmartToggle
:on="SHORTCUTS_INDICATOR_ENABLED"
@change="toggleSetting('SHORTCUTS_INDICATOR_ENABLED')"
>
{{ $t("shortcuts_indicator") }}
{{
SHORTCUTS_INDICATOR_ENABLED ? $t("enabled") : $t("disabled")
}}
</SmartToggle>
</div>
</div>
</fieldset>
</div>
@@ -332,6 +343,8 @@ export default Vue.extend({
confirmRemove: false,
TELEMETRY_ENABLED: null,
SHORTCUTS_INDICATOR_ENABLED: null,
}
},
subscriptions() {
@@ -353,6 +366,9 @@ export default Vue.extend({
SYNC_HISTORY: getSettingSubject("syncHistory"),
TELEMETRY_ENABLED: getSettingSubject("TELEMETRY_ENABLED"),
SHORTCUTS_INDICATOR_ENABLED: getSettingSubject(
"SHORTCUTS_INDICATOR_ENABLED"
),
currentUser: currentUser$,
}