frontend: fill id with uuid for creation forms

This commit is contained in:
Lennart
2025-07-23 21:31:10 +02:00
parent 4bd6271e33
commit 84af24a2b7
4 changed files with 8 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ let CreateCalendarForm = class extends i {
super();
this.user = "";
this.principal = "";
this.cal_id = "";
this.cal_id = self.crypto.randomUUID();
this.displayname = "";
this.description = "";
this.timezone_id = "";
@@ -48,7 +48,7 @@ let CreateCalendarForm = class extends i {
<br>
<label>
id
<input type="text" name="id" @change=${(e2) => this.cal_id = e2.target.value} />
<input type="text" name="id" value=${this.cal_id} @change=${(e2) => this.cal_id = e2.target.value} />
</label>
<br>
<label>