From ea9743b914c5b975e20fc0114cd0f63a88e02536 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 25 Apr 2024 22:07:59 +0530 Subject: [PATCH] chore: more code cleanups --- .../settings/personal/AudioAlertCondition.vue | 4 +- .../settings/personal/AudioAlertEvent.vue | 24 +++---- .../settings/personal/AudioAlertTone.vue | 25 +++---- .../personal/NotificationCheckBox.vue | 2 +- .../personal/NotificationPreferences.vue | 10 ++- app/javascript/v3/components/Form/Switch.vue | 67 ++++--------------- 6 files changed, 43 insertions(+), 89 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/AudioAlertCondition.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/AudioAlertCondition.vue index 6361e46ec..fddc076b5 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/AudioAlertCondition.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/AudioAlertCondition.vue @@ -1,7 +1,7 @@ diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationCheckBox.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationCheckBox.vue index 45139551a..a4659c4fb 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationCheckBox.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/NotificationCheckBox.vue @@ -5,7 +5,7 @@ > {{ $t('PROFILE_SETTINGS.FORM.NOTIFICATIONS.PUSH') }} - + @@ -75,7 +78,10 @@ {{ $t('PROFILE_SETTINGS.FORM.PUSH_NOTIFICATIONS_SECTION.TITLE') }} - +
diff --git a/app/javascript/v3/components/Form/Switch.vue b/app/javascript/v3/components/Form/Switch.vue index eb22b5804..9fb95f59a 100644 --- a/app/javascript/v3/components/Form/Switch.vue +++ b/app/javascript/v3/components/Form/Switch.vue @@ -1,13 +1,23 @@ @@ -15,7 +25,6 @@ export default { props: { value: { type: Boolean, default: false }, - size: { type: String, default: '' }, }, methods: { onClick() { @@ -24,53 +33,3 @@ export default { }, }; -