mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
Merge pull request #420 from thelounge/astorije/sign-in-fs
Do not display the sidebar on sign-in page
This commit is contained in:
commit
59c2494943
3 changed files with 5 additions and 7 deletions
|
@ -512,6 +512,10 @@ button,
|
|||
top: 4px;
|
||||
}
|
||||
|
||||
.signed-out #main {
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
#header {
|
||||
display: none;
|
||||
height: 40px;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<link rel="manifest" href="manifest.json">
|
||||
|
||||
</head>
|
||||
<body class="<%= public ? "public" : "" %>">
|
||||
<body class="signed-out <%= public ? "public" : "" %>">
|
||||
|
||||
<div id="wrap">
|
||||
<div id="viewport">
|
||||
|
@ -60,9 +60,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="sign-in" class="window">
|
||||
<div class="header">
|
||||
<button class="lt" aria-label="Toggle channel list"></button>
|
||||
</div>
|
||||
<form class="container" method="post" action="">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
|
|
@ -77,14 +77,11 @@ $(function() {
|
|||
});
|
||||
|
||||
socket.on("auth", function(data) {
|
||||
var body = $("body");
|
||||
var login = $("#sign-in");
|
||||
|
||||
login.find(".btn").prop("disabled", false);
|
||||
|
||||
if (!data.success) {
|
||||
body.addClass("signed-out");
|
||||
|
||||
window.localStorage.removeItem("token");
|
||||
|
||||
var error = login.find(".error");
|
||||
|
|
Loading…
Reference in a new issue