discourse/app/assets/javascripts/admin/addon/components/modal
Osama Sayegh 35b748e7f4
FIX: Don't show silence button on staff users and display similar users (#28423)
This commit fixes a bug where the silence button is incorrectly displayed on the admin page of a staff user. It's not actually possible to silence a staff user because the backend correctly prevents it, but the frontend isn't checking if the button should be displayed.

Another small bug that this commit fixes is the similar users list not showing up inside the silence/suspend modals due to also a bug in the frontend.

I've also changed the way similar users are loaded so that they're not returned by the `admin/users#show` endpoint anymore and moved them into a new endpoint that the penalize modals (suspend and silence) can call directly to retrieve the list of users. This is done because the similar users list is never shown on the admin user page (`/admin/users/:user_id/:username`); they're only needed when the suspend or silence modals are opened.

Internal topic: t/130014.
2024-08-20 15:27:29 +03:00
..
api-key-urls.hbs
badge-preview.hbs
badge-preview.js DEV: form-kit 2024-07-17 11:59:35 +02:00
color-scheme-select-base.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
color-scheme-select-base.js
custom-date-range.hbs
custom-date-range.js
delete-posts-confirmation.hbs
delete-posts-confirmation.js
delete-user-posts-progress.hbs
delete-user-posts-progress.js
edit-badge-groupings.hbs
edit-badge-groupings.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
form-template-validation-options.hbs
form-template-validation-options.js
incoming-email.hbs
install-theme.hbs DEV: Add loading spinner to install theme modal (#25888) 2024-02-26 14:14:21 -07:00
install-theme.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
merge-users-confirmation.hbs
merge-users-confirmation.js
merge-users-progress.hbs
merge-users-progress.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
merge-users-prompt.hbs
merge-users-prompt.js
penalize-user.hbs FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
penalize-user.js FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
reseed.hbs DEV: allows to alter category name/description (#28263) 2024-08-08 17:33:23 +02:00
reseed.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
site-setting-default-categories.hbs
site-setting-default-categories.js
staff-action-log-details.hbs
start-backup.hbs
start-backup.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
theme-change.hbs
theme-change.js
uploaded-image-list.hbs FIX: Allow deleting avatars from the selectable avatars setting (#26720) 2024-04-24 16:07:12 -04:00
uploaded-image-list.js FIX: Allow deleting avatars from the selectable avatars setting (#26720) 2024-04-24 16:07:12 -04:00
watched-word-test.hbs
watched-word-test.js PERF: Avoid excessive object creations in watched words (#27354) 2024-06-10 14:44:31 +02:00