This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit/controllers
Penar Musaraj 343037b022
FIX: Bug with permanent delete modal (#18825)
Repro steps:
- enable permanent deletes (via hidden site setting)
- set `min_topic_views_for_delete_confirm` to 0

When permanently deleting, the delete confirm modal is shown (for a
second time) and it doesn't pass the `force_destroy` parameter to the
request and the action results in a 422 error (i.e. can't perma-delete).

This change skips showing the confirm modal when perma-deleting given
that it has already been show on the first delete action.
2022-11-04 14:49:19 -04:00
..
admin-customize-themes-show-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
admin-customize-themes-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
admin-user-badges-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
avatar-selector-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
create-account-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
history-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
preferences-account-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
preferences-profile-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
preferences-second-factor-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
reorder-categories-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
topic-test.js FIX: Bug with permanent delete modal (#18825) 2022-11-04 14:49:19 -04:00
user-notifications-test.js DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00