mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
(js) Improve confirm dialogs for deletions
This commit is contained in:
1 parent
693f80dc9a
commit
37f4b11834
7 files changed
+12
-6
No files matched your search
@@ -76,7 +76,8 @@
|
||||
|
||||
function confirmDeleteSelectedComponents() {
|
||||
Dialog.confirm(l('Warning'),
|
||||
l('Are you sure you want to delete the selected components?'))
|
||||
l('Are you sure you want to delete the selected components?'),
|
||||
{ ok: l('Delete') })
|
||||
.then(function() {
|
||||
// User confirmed the deletion
|
||||
var components = _.filter(Component['$' + vm.componentType], function(component) { return component.selected; });
|
||||
|
||||
Reference in new issue
Block a user