Fix a misalignment problem with the temperature graph
This commit is contained in:
1 parent
ced74f5b45
commit
eb5e2c94a3
1 file changed
+10
-7
@@ -155,12 +155,8 @@ $(function() {
|
||||
self.settingsViewModel.printerProfiles.currentProfileData().heatedBed.subscribe(self._printerProfileUpdated);
|
||||
});
|
||||
|
||||
// TODO: find some nicer way to update plot AFTER graph becomes visible
|
||||
self.access.permissions.permissionsList.subscribe(function(values) {
|
||||
if (self.loginStateSubscription !== undefined) {
|
||||
self.loginStateSubscription.dispose();
|
||||
self.loginStateSubscription = undefined;
|
||||
}
|
||||
self.onUserLoggedIn = function () {
|
||||
self._initializePlot(true);
|
||||
|
||||
self.loginStateSubscription = self.loginState.hasPermissionKo(self.access.permissions.STATUS).subscribe(function(value) {
|
||||
var graph = $("#temp, #temp_link");
|
||||
@@ -174,7 +170,14 @@ $(function() {
|
||||
}
|
||||
self.updatePlot();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
self.onUserLoggedOut = function (){
|
||||
if (self.loginStateSubscription !== undefined) {
|
||||
self.loginStateSubscription.dispose();
|
||||
self.loginStateSubscription = undefined;
|
||||
}
|
||||
};
|
||||
|
||||
self.temperatures = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user