diff --git a/authenticator.js b/authenticator.js index 707ed21..49bc12b 100644 --- a/authenticator.js +++ b/authenticator.js @@ -13,6 +13,7 @@ function logout() { } function onAuthenticated() { + console.log("onAuthenticated"); // set access token in gapi client for future requests gapi.client.setToken({ access_token: getTokenFromSessionStorage() }); const accessToken = getTokenFromSessionStorage(); @@ -24,6 +25,7 @@ function onAuthenticated() { // if authenticated successfully, hide authentication button && show logout button $(".toolbar [id='auth_btn']").hide(); $(".toolbar [id='logout_btn']").show(); + $(".toolbar [id='upload1']").show(); } } diff --git a/gapiLoader.js b/gapiLoader.js index 0a6d9c3..fd4d8af 100644 --- a/gapiLoader.js +++ b/gapiLoader.js @@ -1,4 +1,3 @@ -let gapiClientInited = false; let gapiPickerInited = false; let gisInited = false; // set this to the right server origin when pushed to Github @@ -137,13 +136,11 @@ function enableBrowseButton(accessToken) { * Enables user interaction after all libraries are loaded. */ function maybeEnableAuthButton() { - if (gapiClientInited && gapiPickerInited && gisInited && !isAuthenticated) { + if (gapiPickerInited && !isAuthenticated) { $(".toolbar [id='auth_btn']").show(); } } function maybeEnableSaveRemoteButton() { - if (gapiClientInited && gisInited) { - $("#save_remote").show(); - } + $("#save_remote").show(); } diff --git a/viewtree.html b/viewtree.html index eb4d8ee..893b4d4 100644 --- a/viewtree.html +++ b/viewtree.html @@ -124,7 +124,7 @@
MyDrive CoNLL-U files
@@ -146,7 +146,7 @@