Add default value to prompt for change description in page update
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-06-27 00:28:37 +02:00
parent 7c83ad0937
commit ce895e9297

View File

@ -39,7 +39,7 @@ export class OpenEditPage {
contentToSave += this.content; contentToSave += this.content;
const encodedContent = btoa(new TextEncoder().encode(contentToSave).reduce((data, byte) => data + String.fromCharCode(byte), "")); const encodedContent = btoa(new TextEncoder().encode(contentToSave).reduce((data, byte) => data + String.fromCharCode(byte), ""));
await get(pageRepo).updatePage(this.pageId, encodedContent, this.sha, prompt("Was hast du geändert?") ?? `Updated ${this.pageTitle}`, this.manager.branch); await get(pageRepo).updatePage(this.pageId, encodedContent, this.sha, prompt("Was hast du geändert?", `Updated ${this.pageTitle}`) ?? `Updated ${this.pageTitle}`, this.manager.branch);
this.dirty = false; this.dirty = false;
this.manager.reloadImages(); this.manager.reloadImages();
} }