Files
libredesk/frontend/src/components/layout/MenuCard.vue
Abhinav Raut 3f7d151d33 - add getting started flow for new users
- 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.
2025-08-30 21:30:24 +05:30

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>