From bea936a7a07c65d3e842e41b926c0138e97e90c6 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 19 Sep 2024 13:30:44 +0700 Subject: [PATCH] refactor: kebab link, upload --- src/components/shared/KebabAction.vue | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/components/shared/KebabAction.vue b/src/components/shared/KebabAction.vue index c6b041fe..14f53502 100644 --- a/src/components/shared/KebabAction.vue +++ b/src/components/shared/KebabAction.vue @@ -9,6 +9,9 @@ const props = withDefaults( idName: string; status: string; hideToggle?: boolean; + useLink?: boolean; + useUpload?: boolean; + disableDelete?: boolean; }>(), { @@ -20,6 +23,8 @@ const props = withDefaults( defineEmits<{ (e: 'view'): void; (e: 'edit'): void; + (e: 'link'): void; + (e: 'upload'): void; (e: 'delete'): void; (e: 'changeStatus'): void; }>(); @@ -87,6 +92,49 @@ watch( {{ $t('general.edit') }} + + + + + {{ $t('general.add', { text: $t('quotation.receipt') }) }} + + + + + + + {{ $t('general.upload', { msg: $t('general.attachment') }) }} + + +