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

This commit is contained in:
2025-06-27 00:28:16 +02:00
parent 5e0a9d89b3
commit 7c83ad0937

View File

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