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:
parent
1c132c39ad
commit
c1fdbaa1e7
1 changed files with 10 additions and 4 deletions
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in a new issue