Skip to content

Commit 0f2f6b7

Browse files
authored
Merge pull request #31 from mrbeam/feature/SW-2058-pop-up-to-guide-the-user-to-do-hard-refresh-after-update
Feature/sw 2058 pop up to guide the user to do hard refresh after update
2 parents 1d2e495 + 3f06a9e commit 0f2f6b7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

octoprint_mrbeam/static/css/mrbeam.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,14 +3408,17 @@ button#terminal-send {
34083408
margin: 20px auto;
34093409
}
34103410

3411-
.hard_refresh_overlay {
3411+
#hard_refresh_overlay {
34123412
width: 60%;
34133413
margin-left: -30%;
34143414
}
3415-
.hard_refresh_overlay .image_description {
3415+
#hard_refresh_overlay .image_description {
34163416
padding: 40px;
34173417
}
3418-
.hard_refresh_overlay .modal-header {
3419-
padding-top: 10px;
3420-
padding-bottom: 10px;
3418+
#hard_refresh_overlay .modal-header {
3419+
padding-top: 20px;
3420+
padding-bottom: 20px;
3421+
}
3422+
#hard_refresh_overlay .icon-warning-sign{
3423+
color: #e25303;
34213424
}

octoprint_mrbeam/static/js/hard_refresh_overlay.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ $(function () {
2323
}
2424
// needs to be used for oprint 1.3.6
2525
self.onDataUpdaterPluginMessage = function (plugin, data) {
26-
console.log("hard_refresh", plugin, data);
2726
if (plugin === "softwareupdate") {
2827
if ("type" in data && (data["type"] === "success" || data["type"] === "restarting" || data["type"] === "restart_manually")) {
2928
document.cookie = "f.u.extra=true"; // add cookie

octoprint_mrbeam/templates/hard_refresh_overlay.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="hard_refresh_overlay" class="modal hide fade hard_refresh_overlay" data-backdrop="static">
1+
<div id="hard_refresh_overlay" class="modal hide fade" data-backdrop="static">
22
<div class="modal-header">
33
<h3><i class="icon icon-warning-sign"></i> {{ _('Refresh is needed after the last Software Update') }}</h3>
44
</div>

0 commit comments

Comments
 (0)