Disable text area when is not himself
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-03-22 18:38:18 -03:00
parent 6f97ee1aeb
commit 71a4a20f20
2 changed files with 10 additions and 1 deletions

View File

@ -9,6 +9,10 @@ const $props = defineProps({
type: String,
default: '',
},
isHimself: {
type: Boolean,
default: false,
},
});
const emit = defineEmits(['onSubmit']);
@ -36,6 +40,7 @@ const closeForm = () => {
v-model="reasonFormData"
type="textarea"
autogrow
:disable="!isHimself"
/>
</template>
</FormPopup>

View File

@ -609,7 +609,11 @@ onMounted(async () => {
<WorkerTimeForm v-bind="workerTimeFormProps" @on-data-saved="updateData()" />
</QDialog>
<QDialog ref="workerTimeReasonFormDialogRef">
<WorkerTimeReasonForm @on-submit="isUnsatisfied($event)" :reason="reason" />
<WorkerTimeReasonForm
@on-submit="isUnsatisfied($event)"
:reason="reason"
:is-him-self="isHimSelf"
/>
</QDialog>
</QPage>
</template>