refactor: delete kabab action

This commit is contained in:
Thanaphon Frappet 2024-11-25 17:30:25 +07:00
parent 3bc941dd25
commit 7fba54a376

View file

@ -1,7 +1,6 @@
<script setup lang="ts">
import { QTable, QTableProps, QTableSlots } from 'quasar';
import KebabAction from 'components/shared/KebabAction.vue';
import QuotationCard from 'src/components/05_quotation/QuotationCard.vue';
import BadgeComponent from 'src/components/BadgeComponent.vue';
import AvatarGroup from 'src/components/shared/AvatarGroup.vue';
@ -27,8 +26,6 @@ const props = withDefaults(
defineEmits<{
(e: 'view', data: RequestData): void;
(e: 'edit', id: string): void;
(e: 'delete', id: string): void;
}>();
function getCustomerName(
@ -155,15 +152,6 @@ function getEmployeeName(
flat
@click.stop="$emit('view', props.row)"
/>
<KebabAction
:idName="`btn-kebab-${props.row.quotation.workName}`"
status="'ACTIVE'"
hide-toggle
@view="$emit('view', props.row)"
@edit="$emit('edit', props.row.id)"
@delete="$emit('delete', props.row.id)"
/>
</q-td>
</q-tr>
</template>