refactor: centralize confirm and prompt dialog calls in frontend

This commit is contained in:
cesnimda
2026-03-22 14:08:30 +01:00
parent c296e26b6c
commit 0863728eab
5 changed files with 18 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
export function confirmAction(message: string): boolean {
return window.confirm(message);
}
export function promptForValue(message: string, defaultValue = ""): string | null {
return window.prompt(message, defaultValue);
}