refactor: centralize confirm and prompt dialog calls in frontend
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user