mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-21 06:48:04 +00:00
Find view: confirm deletion (fixes #58)
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
import ObjectGrid from '$components/objectgrid.svelte';
|
||||
import ObjectViewer from '$components/objectviewer.svelte';
|
||||
import input from '$lib/actions/input';
|
||||
import dialogs from '$lib/dialogs';
|
||||
import { deepClone } from '$lib/objects';
|
||||
import { startProgress } from '$lib/progress';
|
||||
import applicationSettings from '$lib/stores/settings';
|
||||
@ -119,6 +120,10 @@
|
||||
if (!activePath[0]) {
|
||||
return;
|
||||
}
|
||||
const sure = await dialogs.confirm('Are you sure you wish to delete this item?');
|
||||
if (!sure) {
|
||||
return;
|
||||
}
|
||||
const ok = await RemoveItemById(collection.hostKey, collection.dbKey, collection.key, activePath[0]);
|
||||
if (ok) {
|
||||
await submitQuery();
|
||||
|
Reference in New Issue
Block a user