summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/user-auth.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-05 06:29:32 +0100
committerGitHub <noreply@github.com>2024-03-05 05:29:32 +0000
commit7e8c1c5ba18e1ac8861f429b825163b8210fd178 (patch)
tree2fe9893d04d8745a7c81119ff7f5a21590ab23f2 /web_src/js/features/user-auth.js
parent3e84bfdf410ec1fdf22711156d729e51d7355a8e (diff)
downloadgitea-7e8c1c5ba18e1ac8861f429b825163b8210fd178.tar.gz
gitea-7e8c1c5ba18e1ac8861f429b825163b8210fd178.zip
Replace more `gt-` with `tw-`, update frontend docs (#29595)
Tested a few things, all working fine. Not sure if the chinese machine translation is good. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/features/user-auth.js')
-rw-r--r--web_src/js/features/user-auth.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/user-auth.js b/web_src/js/features/user-auth.js
index 60d186e699..a871ac471c 100644
--- a/web_src/js/features/user-auth.js
+++ b/web_src/js/features/user-auth.js
@@ -9,13 +9,13 @@ export function initUserAuthOauth2() {
for (const link of outer.querySelectorAll('.oauth-login-link')) {
link.addEventListener('click', () => {
- inner.classList.add('gt-invisible');
+ inner.classList.add('tw-invisible');
outer.classList.add('is-loading');
setTimeout(() => {
// recover previous content to let user try again
// usually redirection will be performed before this action
outer.classList.remove('is-loading');
- inner.classList.remove('gt-invisible');
+ inner.classList.remove('tw-invisible');
}, 5000);
});
}