forgejo/web_src/js/features/admin
Gusted e6c17f31be fix(ui): only run auth_name code on new and edit page (#7470)
- Only run the dynamic `auth_name` update code when its on the new or edit page. `.admin.authentication` also matches the main authentication screen which lead to a javascript error.
- Regression of forgejo/forgejo#7408

# Testing
1. Login as a admin.
2. Go to `/admin/auths`.
3. Notice no errors.
4. Go to `admin/auths/new`.
6. Select 'OAuth2' as authentication type.
5. Type some input into the 'Authentication name'.
6. Notice the the callback URL in the 'Tips' section including the authentication name.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7470
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-06 12:25:29 +00:00
..
common.js fix(ui): only run auth_name code on new and edit page (#7470) 2025-04-06 12:25:29 +00:00
config.js Refactor system setting (#27000) 2023-10-05 09:08:19 +08:00
emails.js Add system setting table with cache and also add cache supports for user setting (#18058) 2022-10-17 07:29:26 +08:00
users.js Remove jQuery from the user search form in admin page (#29151) 2024-03-30 07:17:32 +01:00