Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1586,5 +1586,6 @@ define({
"CONTACT_SUPPORT": "Contact support",
"SIGN_OUT": "Sign out",
"ACCOUNT_DETAILS": "Account Details",
"AI_QUOTA_USED": "AI quota used"
"AI_QUOTA_USED": "AI quota used",
"LOGIN_REFRESH": "Check Login Status"
});
3 changes: 3 additions & 0 deletions src/services/html/otp-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ <h1 class="dialog-title">{{Strings.VALIDATION_CODE_TITLE}}</h1>
</div>
</div>
<div class="modal-footer">
<div class="left">
<button class="btn" data-button-id="refresh">{{Strings.LOGIN_REFRESH}}</button>
</div>
<button class="btn" data-button-id="cancel">{{Strings.CANCEL}}</button>
<button class="btn primary" data-button-id="open">{{Strings.OPEN_SIGN_IN_URL}}</button>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/services/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ define(function (require, exports, module) {
$template.on('click', '[data-button-id="cancel"]', function() {
dialog.close();
});
$template.on('click', '[data-button-id="refresh"]', function() {
checkLoginStatus();
});

let checking = false, checkAgain = false;
// never rejects
async function checkLoginStatus() {
if(checking) {
checkAgain = true;
Expand Down
Loading