chore: Update buttons in Inbox and its settings page (#11127)

This commit is contained in:
Sivin Varghese
2025-03-21 00:29:47 +05:30
committed by GitHub
parent 220014c290
commit 91b7785dfe
4 changed files with 31 additions and 34 deletions

View File

@@ -68,7 +68,7 @@ const getStatusText = computed(() => {
:placeholder=" :placeholder="
$t('INBOX_MGMT.WIDGET_BUILDER.FOOTER.CHAT_INPUT_PLACEHOLDER') $t('INBOX_MGMT.WIDGET_BUILDER.FOOTER.CHAT_INPUT_PLACEHOLDER')
" "
class="flex-grow !bg-white border-0 border-none h-8 text-sm dark:!bg-slate-700 pb-0 !pt-1.5 resize-none px-3 !mb-0 focus:outline-none rounded-md" class="flex-grow !bg-white border-0 outline-none !outline-0 border-none h-8 text-sm dark:!bg-slate-700 pb-0 !pt-1.5 resize-none px-3 !mb-0 focus:outline-none rounded-md"
@focus="isInputFocused = true" @focus="isInputFocused = true"
@blur="isInputFocused = false" @blur="isInputFocused = false"
/> />

View File

@@ -9,6 +9,7 @@ import { useI18n } from 'vue-i18n';
import { useStoreGetters, useStore } from 'dashboard/composables/store'; import { useStoreGetters, useStore } from 'dashboard/composables/store';
import ChannelName from './components/ChannelName.vue'; import ChannelName from './components/ChannelName.vue';
import ChannelIcon from 'next/icon/ChannelIcon.vue'; import ChannelIcon from 'next/icon/ChannelIcon.vue';
import Button from 'dashboard/components-next/button/Button.vue';
const getters = useStoreGetters(); const getters = useStoreGetters();
const store = useStore(); const store = useStore();
@@ -76,13 +77,11 @@ const openDelete = inbox => {
feature-name="inboxes" feature-name="inboxes"
> >
<template #actions> <template #actions>
<router-link <router-link v-if="isAdmin" :to="{ name: 'settings_inbox_new' }">
v-if="isAdmin" <Button
class="button nice rounded-md" icon="i-lucide-circle-plus"
:to="{ name: 'settings_inbox_new' }" :label="$t('SETTINGS.INBOXES.NEW_INBOX')"
> />
<fluent-icon icon="add-circle" />
{{ $t('SETTINGS.INBOXES.NEW_INBOX') }}
</router-link> </router-link>
</template> </template>
</BaseSettingsHeader> </BaseSettingsHeader>
@@ -128,25 +127,22 @@ const openDelete = inbox => {
params: { inboxId: inbox.id }, params: { inboxId: inbox.id },
}" }"
> >
<woot-button <Button
v-if="isAdmin" v-if="isAdmin"
v-tooltip.top="$t('INBOX_MGMT.SETTINGS')" v-tooltip.top="$t('INBOX_MGMT.SETTINGS')"
variant="smooth" icon="i-lucide-settings"
size="tiny" slate
icon="settings" xs
color-scheme="secondary" faded
class-names="grey-btn"
/> />
</router-link> </router-link>
<Button
<woot-button
v-if="isAdmin" v-if="isAdmin"
v-tooltip.top="$t('INBOX_MGMT.DELETE.BUTTON_TEXT')" v-tooltip.top="$t('INBOX_MGMT.DELETE.BUTTON_TEXT')"
variant="smooth" icon="i-lucide-trash-2"
color-scheme="alert" xs
size="tiny" ruby
class-names="grey-btn" faded
icon="dismiss-circle"
@click="openDelete(inbox)" @click="openDelete(inbox)"
/> />
</div> </div>

View File

@@ -721,17 +721,16 @@ export default {
@update="toggleSenderNameType" @update="toggleSenderNameType"
/> />
<div class="flex flex-col items-start gap-2 mt-2"> <div class="flex flex-col items-start gap-2 mt-2">
<woot-button <NextButton
variant="clear" ghost
color-scheme="primary" blue
@click="onClickShowBusinessNameInput" :label="
>
{{
$t( $t(
'INBOX_MGMT.EDIT.SENDER_NAME_SECTION.BUSINESS_NAME.BUTTON_TEXT' 'INBOX_MGMT.EDIT.SENDER_NAME_SECTION.BUSINESS_NAME.BUTTON_TEXT'
) )
}} "
</woot-button> @click="onClickShowBusinessNameInput"
/>
<div v-if="showBusinessNameInput" class="flex gap-2 w-[80%]"> <div v-if="showBusinessNameInput" class="flex gap-2 w-[80%]">
<input <input
ref="businessNameInput" ref="businessNameInput"
@@ -744,13 +743,15 @@ export default {
class="mb-0" class="mb-0"
type="text" type="text"
/> />
<woot-button color-scheme="primary" @click="updateInbox"> <NextButton
{{ :label="
$t( $t(
'INBOX_MGMT.EDIT.SENDER_NAME_SECTION.BUSINESS_NAME.SAVE_BUTTON_TEXT' 'INBOX_MGMT.EDIT.SENDER_NAME_SECTION.BUSINESS_NAME.SAVE_BUTTON_TEXT'
) )
}} "
</woot-button> class="flex-shrink-0"
@click="updateInbox"
/>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -209,7 +209,7 @@ export default {
<div> <div>
<span <span
v-if="isDayEnabled && !hasError" v-if="isDayEnabled && !hasError"
class="label bg-woot-50 dark:bg-woot-600 text-woot-700 dark:text-woot-100 text-xs inline-block px-2 py-1 rounded-sm cursor-default whitespace-nowrap" class="label bg-n-brand/10 dark:bg-n-brand/30 text-n-blue-text text-xs inline-block px-2 py-1 rounded-lg cursor-default whitespace-nowrap"
> >
{{ totalHours }} {{ $t('INBOX_MGMT.BUSINESS_HOURS.DAY.HOURS') }} {{ totalHours }} {{ $t('INBOX_MGMT.BUSINESS_HOURS.DAY.HOURS') }}
</span> </span>