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:
parent
f29b1f7afd
commit
a8c62e6688
1 changed files with 9 additions and 1 deletions
|
@ -75,6 +75,12 @@
|
|||
v-model="newEventName"
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
v-model="newEventHost"
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
|
@ -136,6 +142,7 @@ function canEdit(event: ClientScheduleEvent) {
|
|||
}
|
||||
|
||||
const newEventName = ref("");
|
||||
const newEventHost = ref("");
|
||||
const newEventDescription = ref("");
|
||||
const newEventPublic = ref(false);
|
||||
function eventExists(name: string) {
|
||||
|
@ -156,7 +163,7 @@ function newEvent() {
|
|||
schedule.value.nextClientId--,
|
||||
newEventName.value,
|
||||
!newEventPublic.value,
|
||||
"",
|
||||
newEventHost.value,
|
||||
false,
|
||||
"",
|
||||
newEventDescription.value,
|
||||
|
@ -166,6 +173,7 @@ function newEvent() {
|
|||
);
|
||||
schedule.value.events.add(event);
|
||||
newEventName.value = "";
|
||||
newEventHost.value = "";
|
||||
newEventDescription.value = "";
|
||||
newEventPublic.value = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue