diff --git a/components/smart/Toggle.vue b/components/smart/Toggle.vue index 98b55bace..433e9b9f2 100644 --- a/components/smart/Toggle.vue +++ b/components/smart/Toggle.vue @@ -1,5 +1,5 @@ @@ -252,6 +260,10 @@ export default Vue.extend({ currentBackendUser: null, currentUser: null, + + confirmRemove: false, + + TELEMETRY_ENABLED: null, } }, subscriptions() { @@ -302,6 +314,10 @@ export default Vue.extend({ }, }, methods: { + showConfirmModal() { + if (this.TELEMETRY_ENABLED) this.confirmRemove = true + else toggleSetting("TELEMETRY_ENABLED") + }, applySetting(key: K, value: SettingsType[K]) { applySetting(key, value) },