This commit is contained in:
KoalaSat 2023-11-15 16:33:58 +01:00 committed by Reckless_Satoshi
parent b9bab30de3
commit 48dd17b2c6

View File

@ -36,6 +36,7 @@ class Garage {
...defaultSlot, ...defaultSlot,
...raw, ...raw,
robot, robot,
order: null,
}; };
}); });
console.log('Robot Garage was loaded from local storage'); console.log('Robot Garage was loaded from local storage');
@ -123,6 +124,8 @@ class Garage {
if (attributes.activeOrderId && attributes.activeOrderId != null) { if (attributes.activeOrderId && attributes.activeOrderId != null) {
this.slots[index].activeOrderId = attributes.activeOrderId; this.slots[index].activeOrderId = attributes.activeOrderId;
this.slots[index].activeOrderShortAlias = attributes.shortAlias; this.slots[index].activeOrderShortAlias = attributes.shortAlias;
this.slots[index].lastOrderId = null;
this.slots[index].lastOrderShortAlias = null;
} }
this.triggerHook('onRobotUpdate'); this.triggerHook('onRobotUpdate');
this.save(); this.save();