Force refresh of settings on login/logout
Our access rights might have changed, so let's make sure our view of the settings is up to date.
This commit is contained in:
1 parent
1c132c39ad
commit
c1fdbaa1e7
1 file changed
+10
-4
@@ -309,10 +309,6 @@ $(function() {
|
||||
});
|
||||
};
|
||||
|
||||
self.onSettingsShown = function() {
|
||||
self.requestData();
|
||||
};
|
||||
|
||||
self.onSettingsHidden = function() {
|
||||
self.webcam_ffmpegPathReset();
|
||||
};
|
||||
@@ -833,6 +829,16 @@ $(function() {
|
||||
// better refresh them now
|
||||
self.requestData();
|
||||
};
|
||||
|
||||
self.onUserLoggedIn = function() {
|
||||
// we might have other user rights now, refresh
|
||||
self.requestData();
|
||||
};
|
||||
|
||||
self.onUserLoggedOut = function() {
|
||||
// we might have other user rights now, refresh
|
||||
self.requestData();
|
||||
}
|
||||
}
|
||||
|
||||
OCTOPRINT_VIEWMODELS.push([
|
||||
|
||||
Reference in new issue
Block a user