refactor: HomeActions component

This commit is contained in:
Shariq Ansari 2025-09-16 17:20:50 +05:30
parent 84e0fe30a9
commit a6ecc5cfed
3 changed files with 11 additions and 13 deletions

View File

@ -162,7 +162,7 @@ declare module 'vue' {
HelpdeskIcon: typeof import('./src/components/Icons/HelpdeskIcon.vue')['default'] HelpdeskIcon: typeof import('./src/components/Icons/HelpdeskIcon.vue')['default']
HelpdeskSettings: typeof import('./src/components/Settings/HelpdeskSettings.vue')['default'] HelpdeskSettings: typeof import('./src/components/Settings/HelpdeskSettings.vue')['default']
HelpIcon: typeof import('./src/components/Icons/HelpIcon.vue')['default'] HelpIcon: typeof import('./src/components/Icons/HelpIcon.vue')['default']
HomeActions: typeof import('./src/components/Settings/General/HomeActions.vue')['default'] HomeActions: typeof import('./src/components/Settings/HomeActions.vue')['default']
Icon: typeof import('./src/components/Icon.vue')['default'] Icon: typeof import('./src/components/Icon.vue')['default']
IconPicker: typeof import('./src/components/IconPicker.vue')['default'] IconPicker: typeof import('./src/components/IconPicker.vue')['default']
ImageUploader: typeof import('./src/components/Controls/ImageUploader.vue')['default'] ImageUploader: typeof import('./src/components/Controls/ImageUploader.vue')['default']

View File

@ -7,7 +7,7 @@
{{ __('Brand settings') }} {{ __('Brand settings') }}
</h2> </h2>
<p class="text-p-base text-ink-gray-6"> <p class="text-p-base text-ink-gray-6">
{{ __('Configure brand settings for your CRM') }} {{ __('Configure your brand name, logo, and favicon') }}
</p> </p>
</div> </div>
<div class="flex item-center space-x-2 w-3/12 justify-end"> <div class="flex item-center space-x-2 w-3/12 justify-end">

View File

@ -1,16 +1,14 @@
<template> <template>
<div class="flex h-full flex-col gap-6 p-8 text-ink-gray-8"> <div class="flex h-full flex-col gap-6 p-8 text-ink-gray-8">
<!-- Header --> <!-- Header -->
<div class="flex justify-between"> <div class="flex justify-between text-ink-gray-8">
<div class="flex gap-1 -ml-4 w-9/12"> <div class="flex flex-col gap-1">
<Button <h2 class="flex gap-2 text-xl font-semibold leading-none h-5">
variant="ghost" {{ __('Home actions') }}
icon-left="chevron-left" </h2>
:label="__('Home actions')" <p class="text-p-base text-ink-gray-6">
size="md" {{ __('Configure actions that appear on the home dropdown') }}
@click="() => emit('updateStep', 'general-settings')" </p>
class="cursor-pointer hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5 font-semibold text-xl hover:opacity-70 !pr-0 !max-w-96 !justify-start"
/>
</div> </div>
<div class="flex item-center space-x-2 w-3/12 justify-end"> <div class="flex item-center space-x-2 w-3/12 justify-end">
<Button <Button
@ -25,7 +23,7 @@
</div> </div>
<!-- Fields --> <!-- Fields -->
<div class="flex flex-1 flex-col gap-4 overflow-y-auto"> <div class="flex flex-1 flex-col overflow-y-auto">
<Grid <Grid
v-model="document.doc.dropdown_items" v-model="document.doc.dropdown_items"
doctype="CRM Dropdown Item" doctype="CRM Dropdown Item"