chore: Update buttons in SLA page (#11118)
This commit is contained in:
@@ -3,11 +3,13 @@ import { mapGetters } from 'vuex';
|
|||||||
import { convertSecondsToTimeUnit } from '@chatwoot/utils';
|
import { convertSecondsToTimeUnit } from '@chatwoot/utils';
|
||||||
import validations from './validations';
|
import validations from './validations';
|
||||||
import SlaTimeInput from './SlaTimeInput.vue';
|
import SlaTimeInput from './SlaTimeInput.vue';
|
||||||
|
import NextButton from 'dashboard/components-next/button/Button.vue';
|
||||||
import { useVuelidate } from '@vuelidate/core';
|
import { useVuelidate } from '@vuelidate/core';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SlaTimeInput,
|
SlaTimeInput,
|
||||||
|
NextButton,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selectedResponse: {
|
selectedResponse: {
|
||||||
@@ -205,19 +207,19 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end w-full gap-2 mt-8">
|
<div class="flex items-center justify-end w-full gap-2 mt-8">
|
||||||
<woot-button
|
<NextButton
|
||||||
class="px-4 rounded-xl button clear outline-woot-200/50 outline"
|
faded
|
||||||
|
slate
|
||||||
|
type="reset"
|
||||||
|
:label="$t('SLA.FORM.CANCEL')"
|
||||||
@click.prevent="onClose"
|
@click.prevent="onClose"
|
||||||
>
|
/>
|
||||||
{{ $t('SLA.FORM.CANCEL') }}
|
<NextButton
|
||||||
</woot-button>
|
type="submit"
|
||||||
<woot-button
|
:label="submitLabel"
|
||||||
:is-disabled="isSubmitDisabled"
|
:disabled="isSubmitDisabled"
|
||||||
class="px-4 rounded-xl"
|
|
||||||
:is-loading="uiFlags.isUpdating"
|
:is-loading="uiFlags.isUpdating"
|
||||||
>
|
/>
|
||||||
{{ submitLabel }}
|
|
||||||
</woot-button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
import Button from 'dashboard/components-next/button/Button.vue';
|
||||||
import BaseSettingsHeader from '../../components/BaseSettingsHeader.vue';
|
import BaseSettingsHeader from '../../components/BaseSettingsHeader.vue';
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
@@ -19,14 +20,11 @@ defineEmits(['add']);
|
|||||||
feature-name="sla"
|
feature-name="sla"
|
||||||
>
|
>
|
||||||
<template v-if="showActions" #actions>
|
<template v-if="showActions" #actions>
|
||||||
<woot-button
|
<Button
|
||||||
color-scheme="primary"
|
:label="$t('SLA.ADD_ACTION')"
|
||||||
icon="plus-sign"
|
icon="i-lucide-circle-plus"
|
||||||
class="rounded-md"
|
|
||||||
@click="$emit('add')"
|
@click="$emit('add')"
|
||||||
>
|
/>
|
||||||
{{ $t('SLA.ADD_ACTION') }}
|
|
||||||
</woot-button>
|
|
||||||
</template>
|
</template>
|
||||||
</BaseSettingsHeader>
|
</BaseSettingsHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import BaseSettingsListItem from '../../components/BaseSettingsListItem.vue';
|
import BaseSettingsListItem from '../../components/BaseSettingsListItem.vue';
|
||||||
import SLAResponseTime from './SLAResponseTime.vue';
|
import SLAResponseTime from './SLAResponseTime.vue';
|
||||||
import SLABusinessHoursLabel from './SLABusinessHoursLabel.vue';
|
import SLABusinessHoursLabel from './SLABusinessHoursLabel.vue';
|
||||||
|
import Button from 'dashboard/components-next/button/Button.vue';
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
slaName: {
|
slaName: {
|
||||||
@@ -56,13 +57,12 @@ const emit = defineEmits(['delete']);
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<woot-button
|
<Button
|
||||||
v-tooltip.top="$t('SLA.FORM.DELETE')"
|
v-tooltip.top="$t('SLA.FORM.DELETE')"
|
||||||
variant="smooth"
|
faded
|
||||||
color-scheme="alert"
|
ruby
|
||||||
size="tiny"
|
xs
|
||||||
icon="delete"
|
icon="i-lucide-trash-2"
|
||||||
class-names="grey-btn"
|
|
||||||
:is-loading="isLoading"
|
:is-loading="isLoading"
|
||||||
@click="emit('delete')"
|
@click="emit('delete')"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user