refactor: set readonly

This commit is contained in:
Thanaphon Frappet 2024-10-17 11:48:56 +07:00
parent 2d4d0c7783
commit 48017761c2
4 changed files with 44 additions and 33 deletions

View file

@ -92,17 +92,13 @@ defineEmits<{
<template v-slot:body-cell-action="props">
<q-td>
<div
class="row items-center full-width justify-end no-wrap"
v-if="!readonly"
>
<div class="row items-center full-width justify-end no-wrap">
<slot name="button" :props="props"></slot>
<DeleteButton
iconOnly
v-if="buttonDelete"
@click="$emit('delete', props.rowIndex)"
/>
<q-btn
v-if="!buttonDelete"
icon="mdi-eye-outline"
@ -124,7 +120,7 @@ defineEmits<{
/>
<KebabAction
v-if="!buttonDelete"
v-if="!buttonDelete && !readonly"
hide-toggle
:id-name="props.row.code"
:status="props.row.status"