Skip to content

Commit

Permalink
Hide the login box by default and only show it when a private repo is…
Browse files Browse the repository at this point in the history
… given.
  • Loading branch information
barnettwilliam committed Oct 31, 2023
1 parent ea52f4b commit 2342847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<body class="h-100" onresize="fit()" onload="fit();updateGutterVisibility();">
<div id="preloader"><img src="images/preloader.gif" width="100px"></div>

<div id="login" style="display:inline">
<div id="login" style="display:none">
<h2>Login</h2>
<p>
<button id="btnlogin" class="loginbutton" type="button" onclick="">Sign in with github</button> <br>
Expand Down
2 changes: 2 additions & 0 deletions platform/src/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ if (!urlParamPrivateRepo()){
// Public repo so no need to authenticate
initialiseActivity();
PlaygroundUtility.hideLogin();
} else {
PlaygroundUtility.showLogin();
}

document.getElementById("btnlogin").onclick= async () => {
Expand Down

0 comments on commit 2342847

Please sign in to comment.