Skip to content
Snippets Groups Projects
Commit 98a44758 authored by permcu's avatar permcu
Browse files

Disable subject, teachers & rooms selection if lesson cancelled

parent 2d8945d5
No related branches found
No related tags found
1 merge request!310Resolve "Implement Vue substitution frontend"
Pipeline #145221 failed
......@@ -115,8 +115,9 @@
@cancel="amendEvent.open = false"
@save="$emit('refreshCalendar')"
>
<template #subject.field="{ attrs, on }">
<template #subject.field="{ attrs, on, item }">
<v-autocomplete
:disabled="item.cancelled"
:items="amendableSubjects"
item-text="name"
item-value="id"
......@@ -124,8 +125,9 @@
v-on="on"
/>
</template>
<template #teachers.field="{ attrs, on }">
<template #teachers.field="{ attrs, on, item }">
<v-autocomplete
:disabled="item.cancelled"
multiple
:items="amendableTeachers"
item-text="fullName"
......@@ -136,8 +138,9 @@
deletable-chips
/>
</template>
<template #rooms.field="{ attrs, on }">
<template #rooms.field="{ attrs, on, item }">
<v-autocomplete
:disabled="item.cancelled"
multiple
:items="amendableRooms"
item-text="name"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment