Add missing event host field to new events

Add field to input the host of the event when adding a new event to the
table of events.  This also fixes field order in the table being broken.
This commit is contained in:
Hornwitser 2025-09-06 16:24:56 +02:00
parent f29b1f7afd
commit a8c62e6688

View file

@ -75,6 +75,12 @@
v-model="newEventName" v-model="newEventName"
> >
</td> </td>
<td>
<input
type="text"
v-model="newEventHost"
>
</td>
<td> <td>
<input <input
type="text" type="text"
@ -136,6 +142,7 @@ function canEdit(event: ClientScheduleEvent) {
} }
const newEventName = ref(""); const newEventName = ref("");
const newEventHost = ref("");
const newEventDescription = ref(""); const newEventDescription = ref("");
const newEventPublic = ref(false); const newEventPublic = ref(false);
function eventExists(name: string) { function eventExists(name: string) {
@ -156,7 +163,7 @@ function newEvent() {
schedule.value.nextClientId--, schedule.value.nextClientId--,
newEventName.value, newEventName.value,
!newEventPublic.value, !newEventPublic.value,
"", newEventHost.value,
false, false,
"", "",
newEventDescription.value, newEventDescription.value,
@ -166,6 +173,7 @@ function newEvent() {
); );
schedule.value.events.add(event); schedule.value.events.add(event);
newEventName.value = ""; newEventName.value = "";
newEventHost.value = "";
newEventDescription.value = ""; newEventDescription.value = "";
newEventPublic.value = false; newEventPublic.value = false;
} }