Files
libredesk/frontend/shared-ui/components/SwitchField.vue
T
Abhinav Raut 6aea4c9895 Removed the Stepper component and replaced it with a simpler MenuCard layout for channel selection in NewInbox.vue.
- Introduced a new SwitchField component for better UI consistency.
- Updated WebSocket client to remove unnecessary token and inbox_id from ping and typing messages.
- Added session duration configuration to the livechat channel settings in the backend.
2026-04-13 01:38:53 +05:30

27 lines
696 B
Vue

<script setup>
import { Switch } from '@shared-ui/components/ui/switch'
defineProps({
title: { type: String, default: '' },
description: { type: String, default: '' },
checked: { type: Boolean, default: false },
disabled: { type: Boolean, default: false }
})
defineEmits(['update:checked'])
</script>
<template>
<div class="space-y-2">
<p class="text-sm font-medium text-foreground">{{ title }}</p>
<div class="flex items-center gap-3">
<Switch
:checked="checked"
:disabled="disabled"
@update:checked="$emit('update:checked', $event)"
/>
<p class="text-sm text-muted-foreground">{{ description }}</p>
</div>
</div>
</template>