mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-14 04:34:04 +00:00
Find view: confirm deletion (fixes #58)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { AskConfirmation } from '$wails/go/app/App';
|
||||
import InputDialog from '../dialogs/input.svelte';
|
||||
|
||||
function newDialog(dialogComponent, data = {}) {
|
||||
@ -29,6 +30,10 @@ function enterText(title = '', description = '', value = '') {
|
||||
});
|
||||
}
|
||||
|
||||
const dialogs = { new: newDialog, enterText };
|
||||
function confirm(message = '') {
|
||||
return AskConfirmation(message);
|
||||
}
|
||||
|
||||
const dialogs = { new: newDialog, enterText, confirm };
|
||||
|
||||
export default dialogs;
|
||||
|
Reference in New Issue
Block a user