mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-10-24 00:23:36 +00:00
- Translate web template pass i18n dependency - Fix colors in menu card - Show update description if avaialble in AppUpdate component - Remvoe i18n from settings as i18n and settings depend on each other to load initial lang. - Clear inbox password as the update SQL query now returns the config. - Fetch agents and inboxes from the store instead of directly fetching using axios instance.
30 lines
695 B
Vue
30 lines
695 B
Vue
<template>
|
|
<div
|
|
class="flex flex-col p-4 border rounded shadow-sm hover:shadow transition-colors cursor-pointer max-w-xs"
|
|
@click="handleClick">
|
|
<div class="flex items-center mb-2">
|
|
<component :is="icon" size="24" class="mr-2 text-primary" />
|
|
<h3 class="text-lg font-medium">{{ title }}</h3>
|
|
</div>
|
|
<p class="text-sm text-gray-600 dark:text-gray-400">{{ subTitle }}</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { defineEmits } from 'vue'
|
|
|
|
const props = defineProps({
|
|
title: String,
|
|
subTitle: String,
|
|
icon: Function,
|
|
onClick: Function
|
|
})
|
|
|
|
const emit = defineEmits(['click'])
|
|
|
|
const handleClick = () => {
|
|
props.onClick?.()
|
|
emit('click')
|
|
}
|
|
</script>
|