Fixed timelapse postroll settings
* Changing Timelapse post roll activates save button * Timelapse post roll is loaded properly from config
This commit is contained in:
parent
3dc7f8cd7c
commit
e1d75736e7
2 changed files with 13 additions and 2 deletions
|
|
@ -124,6 +124,8 @@
|
||||||
* Do not deliver the API key on settings API unless user has admin rights
|
* Do not deliver the API key on settings API unless user has admin rights
|
||||||
* Don't hiccup on slic3r filament_diameter comments in GCODE generated for multi extruder setups
|
* Don't hiccup on slic3r filament_diameter comments in GCODE generated for multi extruder setups
|
||||||
* Color code successful or failed print results directly in file list, not just after a reload
|
* Color code successful or failed print results directly in file list, not just after a reload
|
||||||
|
* Changing Timelapse post roll activates save button
|
||||||
|
* Timelapse post roll is loaded properly from config
|
||||||
|
|
||||||
([Commits](https://github.com/foosel/OctoPrint/compare/master...devel))
|
([Commits](https://github.com/foosel/OctoPrint/compare/master...devel))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,9 @@ $(function() {
|
||||||
self.timelapseTimedInterval.subscribe(function(newValue) {
|
self.timelapseTimedInterval.subscribe(function(newValue) {
|
||||||
self.isDirty(true);
|
self.isDirty(true);
|
||||||
});
|
});
|
||||||
|
self.timelapsePostRoll.subscribe(function(newValue) {
|
||||||
|
self.isDirty(true);
|
||||||
|
});
|
||||||
|
|
||||||
// initialize list helper
|
// initialize list helper
|
||||||
self.listHelper = new ItemListHelper(
|
self.listHelper = new ItemListHelper(
|
||||||
|
|
@ -87,10 +90,16 @@ $(function() {
|
||||||
self.timelapseType(config.type);
|
self.timelapseType(config.type);
|
||||||
self.listHelper.updateItems(response.files);
|
self.listHelper.updateItems(response.files);
|
||||||
|
|
||||||
if (config.type == "timed" && response.config.interval) {
|
if (config.type == "timed") {
|
||||||
self.timelapseTimedInterval(response.config.interval);
|
if (response.config.interval != undefined && response.config.interval > 0) {
|
||||||
|
self.timelapseTimedInterval(response.config.interval);
|
||||||
|
}
|
||||||
|
if (response.config.postRoll != undefined && response.config.postRoll >= 0) {
|
||||||
|
self.timelapsePostRoll(response.config.postRoll);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.timelapseTimedInterval(undefined);
|
self.timelapseTimedInterval(undefined);
|
||||||
|
self.timelapsePostRoll(undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.persist(false);
|
self.persist(false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue