🐛 PMGR: Disable plugin mgmt while printer is busy
Not just when only actively printing. Closes #3278
This commit is contained in:
1 parent
0e67906d1e
commit
04528a635b
3 files changed
+6
-2
No files matched your search
@@ -149,7 +149,7 @@ $(function() {
|
||||
});
|
||||
|
||||
self.enableManagement = ko.pureComputed(function() {
|
||||
return !self.printerState.isPrinting();
|
||||
return !self.printerState.isBusy();
|
||||
});
|
||||
|
||||
self.enableToggle = function(data) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% macro pluginmanager_printing() %}
|
||||
<div class="alert" data-bind="visible: !enableManagement()">
|
||||
{{ _('Take note that all plugin management functionality is disabled while your printer is printing.') }}
|
||||
{{ _('Take note that all plugin management functionality is disabled while your printer is printing or paused.') }}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
@@ -17,6 +17,10 @@ $(function() {
|
||||
self.isLoading = ko.observable(undefined);
|
||||
self.isSdReady = ko.observable(undefined);
|
||||
|
||||
self.isBusy = ko.pureComputed(function() {
|
||||
return self.isPrinting() || self.isCancelling() || self.isPausing() || self.isPaused();
|
||||
});
|
||||
|
||||
self.enablePrint = ko.pureComputed(function() {
|
||||
return self.isOperational() && self.isReady() && !self.isPrinting() && !self.isCancelling() && !self.isPausing() && self.loginState.isUser() && self.filename();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user