Prevent cancelling "delete all" in inbox still deleting everything
This commit is contained in:
parent
7d14e93ada
commit
435ddf2415
|
@ -39,7 +39,9 @@ export function deleteAllQuestionsHandler(event: Event): void {
|
||||||
cancelButtonText: I18n.translate('views.actions.cancel'),
|
cancelButtonText: I18n.translate('views.actions.cancel'),
|
||||||
closeOnConfirm: true
|
closeOnConfirm: true
|
||||||
}, (returnValue) => {
|
}, (returnValue) => {
|
||||||
if (returnValue === null) return false;
|
if (returnValue === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Rails.ajax({
|
Rails.ajax({
|
||||||
url: '/ajax/delete_all_inbox',
|
url: '/ajax/delete_all_inbox',
|
||||||
|
|
Loading…
Reference in New Issue