summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/user-auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/user-auth.js')
-rw-r--r--web_src/js/features/user-auth.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/js/features/user-auth.js b/web_src/js/features/user-auth.js
index 55aace3bcd..34e773fe7d 100644
--- a/web_src/js/features/user-auth.js
+++ b/web_src/js/features/user-auth.js
@@ -1,4 +1,5 @@
import $ from 'jquery';
+import {hideElem, showElem} from '../utils/dom.js';
export function initUserAuthOauth2() {
const $oauth2LoginNav = $('#oauth2-login-navigator');
@@ -8,14 +9,14 @@ export function initUserAuthOauth2() {
const oauthLoader = $('#oauth2-login-loader');
const oauthNav = $('#oauth2-login-navigator');
- oauthNav.hide();
+ hideElem(oauthNav);
oauthLoader.removeClass('disabled');
setTimeout(() => {
// recover previous content to let user try again
// usually redirection will be performed before this action
oauthLoader.addClass('disabled');
- oauthNav.show();
+ showElem(oauthNav);
}, 5000);
});
}