New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "reload page" button when Lounge fails to start. #1150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. Let's not merge until 2.3.0 is released incase we have some bug fixes.
client/js/loading-slow-alert.js
Outdated
@@ -15,3 +15,7 @@ setTimeout(function() { | |||
element.style.display = "block"; | |||
} | |||
}, 5000); | |||
|
|||
document.getElementById("loading-slow-reload").onclick = function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use addEventListener.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bews, could you fix that please? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
It would be really sweet if it would look like the reload button on the chat page for consistency, but I won't push too much if other @thelounge/maintainers don't like that idea :) I can't get it to show up right now, but 100%-wide red ribbon that turns green when clicking on it. |
I'm not sure I'm happy with the idea of it looking the same as that, it would feel very out of place on this screen, and we plan to remove the other one anyway. I think what we have here is nicer. I understand the consistency though. |
I've thought about it too, but it doesn't look good. Also, #1185 PR removes that wide button completely, so I think it's better to keep current one. |
client/js/loading-slow-alert.js
Outdated
@@ -15,3 +15,7 @@ setTimeout(function() { | |||
element.style.display = "block"; | |||
} | |||
}, 5000); | |||
|
|||
document.getElementById("loading-slow-reload").onclick = function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bews, could you fix that please? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Add "reload page" button when Lounge fails to start.
It's hard to reload when in fullscreen mode: