if (display.id) {
display.trashed = !display.trashed;
if ($scope.controls.tab === ('display_' + index) && display.trashed) {
- $scope.selectTab('compose');
+ $scope.selectTab('for');
} else if (!display.trashed) {
$scope.selectTab('display_' + index);
}
});
}
} else {
- $scope.selectTab('compose');
+ $scope.selectTab('for');
ctrl.savedSearch.displays.splice(index, 1);
}
};
ctrl.savedSearch.groups.length = 0;
}
if ($scope.controls.tab === 'group') {
- $scope.selectTab('compose');
+ $scope.selectTab('for');
}
};