Add prompt for change description in page update
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@ -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, 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.dirty = false;
|
||||||
this.manager.reloadImages();
|
this.manager.reloadImages();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user