File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/gauge/Components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export class NavigraphLogin extends DisplayComponent<NavigraphLoginProps> {
6060 < div class = "auth-container" >
6161 < div class = "horizontal" >
6262 < div class = "vertical" >
63- < div ref = { this . textRef } / >
63+ < div ref = { this . textRef } > Loading </ div >
6464 < div ref = { this . loginButtonRef } class = "button" />
6565 < div ref = { this . navdataTextRef } />
6666 < img ref = { this . qrCodeRef } class = "qr-code" />
@@ -93,12 +93,12 @@ export class NavigraphLogin extends DisplayComponent<NavigraphLoginProps> {
9393 this . qrCodeRef . instance . src = ""
9494 this . qrCodeRef . instance . style . display = "none"
9595 this . loginButtonRef . instance . textContent = "Log out"
96- this . displayMessage ( `Welcome, ${ user . preferred_username } ` )
96+ this . textRef . instance . textContent = `Welcome, ${ user . preferred_username } `
9797
9898 this . handleLogin ( )
9999 } else {
100100 this . loginButtonRef . instance . textContent = "Sign in"
101- this . displayMessage ( "Not logged in" )
101+ this . textRef . instance . textContent = "Not logged in"
102102 }
103103 } , true )
104104 }
You can’t perform that action at this time.
0 commit comments