mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 23:55:34 +00:00
fix(UI): selectAll button was still keeping alle items in memory
This commit is contained in:
@@ -140,19 +140,20 @@
|
||||
}
|
||||
|
||||
function confirmDeleteSelectedComponents() {
|
||||
Dialog.confirm(l('Warning'),
|
||||
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;
|
||||
var components = _.filter(Component['$' + vm.componentType], function(component) {
|
||||
return component.selected;
|
||||
});
|
||||
if(components.length > 0)
|
||||
Dialog.confirm(l('Warning'),
|
||||
l('Are you sure you want to delete the selected components?'),
|
||||
{ ok: l('Delete') })
|
||||
.then(function() {
|
||||
// User confirmed the deletion
|
||||
Calendar.$deleteComponents(components).then(function() {
|
||||
vm.mode.multiple = 0;
|
||||
$rootScope.$emit('calendars:list');
|
||||
});
|
||||
});
|
||||
Calendar.$deleteComponents(components).then(function() {
|
||||
vm.mode.multiple = 0;
|
||||
$rootScope.$emit('calendars:list');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function openEvent($event, event) {
|
||||
|
||||
Reference in New Issue
Block a user