mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 19:06:35 +00:00
6aea4c9895
- 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.
27 lines
696 B
Vue
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>
|