discourse/app/assets/stylesheets
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
..
common FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
desktop UX: fix user profile button wrap, clean up styles (#28255) 2024-08-06 17:47:51 -04:00
mobile DEV: replace list control nav dropdown with DMenuMobile (#28324) 2024-08-16 01:40:47 +02:00
vendor DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
admin_rtl.scss FEATURE: Serve RTL versions of admin and plugins CSS bundles for RTL locales (#21876) 2023-06-01 05:27:11 +03:00
admin.scss Sane sendAction() behavior 2015-09-11 09:34:20 -07:00
color_definitions.scss UX: modernize the header drop shadow (#27843) 2024-07-10 14:29:36 -05:00
common.scss DEV: form-kit 2024-07-17 11:59:35 +02:00
desktop_rtl.scss FEATURE: support user local switching to RTL correctly 2015-05-20 15:56:54 +10:00
desktop.scss DEV: Added support for custom site setting 'emoji_list' (#12414) 2021-04-07 15:32:05 +02:00
embed.scss FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00
ember_cli.scss DEV: Require Ember CLI to be used in development mode (#12738) 2021-04-29 14:13:36 -04:00
mobile_rtl.scss FEATURE: support user local switching to RTL correctly 2015-05-20 15:56:54 +10:00
mobile.scss DEV: form-kit 2024-07-17 11:59:35 +02:00
publish.scss FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00
qunit-custom.scss UX: update twitter blue to X black (#26343) 2024-03-25 11:36:33 -04:00
qunit.scss DEV: Add dark theme support to QUnit (#19014) 2022-11-17 18:44:44 +01:00
wcag.scss UX: Merge the simplified topic map (#27964) 2024-07-22 19:42:29 -03:00
wizard_rtl.scss FEATURE: Serve RTL versions of admin and plugins CSS bundles for RTL locales (#21876) 2023-06-01 05:27:11 +03:00
wizard.scss DEV: Update member access wizard step to use toggle group (#28013) 2024-07-29 14:07:06 +08:00