Skip to content

Commit 137e805

Browse files
committed
chore: add a check login status button on login otp screen
1 parent 93a907b commit 137e805

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/nls/root/strings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,5 +1586,6 @@ define({
15861586
"CONTACT_SUPPORT": "Contact support",
15871587
"SIGN_OUT": "Sign out",
15881588
"ACCOUNT_DETAILS": "Account Details",
1589-
"AI_QUOTA_USED": "AI quota used"
1589+
"AI_QUOTA_USED": "AI quota used",
1590+
"LOGIN_REFRESH": "Check Login Status"
15901591
});

src/services/html/otp-dialog.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ <h1 class="dialog-title">{{Strings.VALIDATION_CODE_TITLE}}</h1>
1212
</div>
1313
</div>
1414
<div class="modal-footer">
15+
<div class="left">
16+
<button class="btn" data-button-id="refresh">{{Strings.LOGIN_REFRESH}}</button>
17+
</div>
1518
<button class="btn" data-button-id="cancel">{{Strings.CANCEL}}</button>
1619
<button class="btn primary" data-button-id="open">{{Strings.OPEN_SIGN_IN_URL}}</button>
1720
</div>

src/services/login.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,12 @@ define(function (require, exports, module) {
269269
$template.on('click', '[data-button-id="cancel"]', function() {
270270
dialog.close();
271271
});
272+
$template.on('click', '[data-button-id="refresh"]', function() {
273+
checkLoginStatus();
274+
});
272275

273276
let checking = false, checkAgain = false;
277+
// never rejects
274278
async function checkLoginStatus() {
275279
if(checking) {
276280
checkAgain = true;

0 commit comments

Comments
 (0)