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

View File

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