From 9528297ddc7aba0afab63ecf0a2a5226081eae44 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 25 Apr 2024 13:18:15 +0530 Subject: [PATCH] chore: more cleanup --- .../settings/personal/AudioNotifications.vue | 2 -- .../settings/personal/BasePersonalIItem.vue | 18 ------------ .../dashboard/settings/personal/Index.vue | 29 ++++++++----------- app/javascript/v3/components/Form/Button.vue | 14 +-------- 4 files changed, 13 insertions(+), 50 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/AudioNotifications.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/AudioNotifications.vue index f972740a4..5fa32e87c 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/AudioNotifications.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/AudioNotifications.vue @@ -23,8 +23,6 @@ :label=" $t('PROFILE_SETTINGS.FORM.AUDIO_NOTIFICATIONS_SECTION.CONDITIONS.TITLE') " - :play-audio-when-tab-is-inactive="playAudioWhenTabIsInactive" - :alert-if-unread-conversation-exist="alertIfUnreadConversationExist" @change="handleAudioAlertConditions" /> diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/BasePersonalIItem.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/BasePersonalIItem.vue index 3ef864db7..9436a57f4 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/BasePersonalIItem.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/BasePersonalIItem.vue @@ -13,21 +13,11 @@
- - {{ buttonText }} -
diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/Index.vue index 9d4531432..ad835a4ea 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/Index.vue @@ -24,12 +24,11 @@ /> - - + - - + - - - + - - + - + @@ -125,12 +120,12 @@ import MessageSignature from './MessageSignature.vue'; import HotKeyCard from './HotKeyCard.vue'; import ChangePassword from './ChangePassword.vue'; import AccessToken from './AccessToken.vue'; -import BasePersonalIItem from './BasePersonalIItem.vue'; +import BasePersonalItem from './BasePersonalIItem.vue'; export default { components: { MessageSignature, - BasePersonalIItem, + BasePersonalItem, HotKeyCard, ChangePassword, AccessToken, diff --git a/app/javascript/v3/components/Form/Button.vue b/app/javascript/v3/components/Form/Button.vue index dc0eacc7c..7697ea7fc 100644 --- a/app/javascript/v3/components/Form/Button.vue +++ b/app/javascript/v3/components/Form/Button.vue @@ -5,12 +5,7 @@ v-bind="$attrs" @click="handleClick" > - + { return 'h-10 px-4 py-2.5 text'; }); -const iconSize = computed(() => { - if (props.size === 'medium') { - return '1em'; - } - return '1.2em'; -}); - const buttonClasses = computed(() => [colorClass.value, sizeClass.value]); const handleClick = event => {