Skip to content

Commit 7fe0387

Browse files
SW-1786 Make update message always show on 0.11.0rc1 (mrbeam#1577)
* SW-1786 Make 2-step update message notification always show on 0.11.0rc1 * SW-1786 Update comment
1 parent fc5da9a commit 7fe0387

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

octoprint_mrbeam/static/js/messages.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,12 @@ $(function () {
241241
var lmid = -1;
242242
self.messages().forEach(function (myMessage) {
243243
lmid = Math.max(lmid, myMessage.id);
244-
if (myMessage.notification && myMessage.id > self.lastMessageId) {
244+
if (myMessage.notification && (myMessage.id > self.lastMessageId
245+
// The below condition is only added to keep the 0.11.0 2-step update message notification showing
246+
// if the user stayed on the 0.11.0rc1 version and didn't execute the 2nd software update
247+
// Message ID '3' should always be assigned to this specific 2-step update message
248+
// TODO: SW-1845: Should be removed after 0.11.0 stable release
249+
|| (myMessage.id === 3 && MRBEAM_PLUGIN_VERSION === "0.11.0rc1"))) {
245250
try {
246251
new PNotify({
247252
title: myMessage.notification.title || '',

0 commit comments

Comments
 (0)