diff options
author | Gusted <postmaster@gusted.xyz> | 2024-07-24 21:48:51 +0200 |
---|---|---|
committer | Gusted <postmaster@gusted.xyz> | 2024-07-24 21:48:51 +0200 |
commit | aa5163d5c4e72cb1e8a1632745c06a006d77537f (patch) | |
tree | 92ece127cb841369e08902b2c4d432eef70c3590 /templates | |
parent | Merge pull request '[SECURITY] Notify users about account security changes' (... (diff) | |
download | forgejo-aa5163d5c4e72cb1e8a1632745c06a006d77537f.tar.xz forgejo-aa5163d5c4e72cb1e8a1632745c06a006d77537f.zip |
[UI] Fix scoped-access-token
- Regression of #4571
- Refactor to not use the component API of Vue. The root cause is still
unknown.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/applications.tmpl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 84541cb82e..04d4dcdb18 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -77,14 +77,12 @@ <p class="activity meta"> <p>{{ctx.Locale.Tr "settings.access_token_desc" (HTMLFormat `href="%s/api/swagger" target="_blank"` AppSubUrl) (`href="https://forgejo.org/docs/latest/user/token-scope/" target="_blank"`|SafeHTML)}}</p> </p> - <div class="scoped-access-token-mount"> - <scoped-access-token-selector - :is-admin="{{if .IsAdmin}}true{{else}}false{{end}}" - no-access-label="{{ctx.Locale.Tr "settings.permission_no_access"}}" - read-label="{{ctx.Locale.Tr "settings.permission_read"}}" - write-label="{{ctx.Locale.Tr "settings.permission_write"}}" - ></scoped-access-token-selector> - </div> + <div class="scoped-access-token" + data-is-admin="{{if .IsAdmin}}true{{else}}false{{end}}" + data-no-access-label="{{ctx.Locale.Tr "settings.permission_no_access"}}" + data-read-label="{{ctx.Locale.Tr "settings.permission_read"}}" + data-write-label="{{ctx.Locale.Tr "settings.permission_write"}}" + ></div> </details> <button id="scoped-access-submit" class="ui primary button"> {{ctx.Locale.Tr "settings.generate_token"}} |