Directly update color coding for success/failure in file list after finishing a print job
This commit is contained in:
parent
faccba1c86
commit
eb4156c02e
3 changed files with 12 additions and 1 deletions
|
|
@ -120,6 +120,7 @@
|
|||
* GCODE viewer now doesn't stumble over completely extrusionless GCODE files
|
||||
* 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
|
||||
* Color code successful or failed print results directly in file list, not just after a reload
|
||||
|
||||
([Commits](https://github.com/foosel/OctoPrint/compare/master...devel))
|
||||
|
||||
|
|
|
|||
|
|
@ -173,6 +173,12 @@ function DataUpdater(allViewModels) {
|
|||
viewModel.onUpdatedFiles(payload);
|
||||
}
|
||||
});
|
||||
} else if (type == "MetadataStatisticsUpdated") {
|
||||
_.each(self.allViewModels, function(viewModel) {
|
||||
if (viewModel.hasOwnProperty("onMetadataStatisticsUpdated")) {
|
||||
viewModel.onMetadataStatisticsUpdated(payload);
|
||||
}
|
||||
})
|
||||
} else if (type == "MetadataAnalysisFinished") {
|
||||
_.each(self.allViewModels, function(viewModel) {
|
||||
if (viewModel.hasOwnProperty("onMetadataAnalysisFinished")) {
|
||||
|
|
|
|||
|
|
@ -337,5 +337,9 @@ function GcodeFilesViewModel(printerStateViewModel, loginStateViewModel, slicing
|
|||
self.onMetadataAnalysisFinished = function(payload) {
|
||||
self.requestData();
|
||||
};
|
||||
|
||||
self.onMetadataStatisticsUpdated = function(payload) {
|
||||
self.requestData();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue