diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 68c09bcb..924bfa25 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,8 +30,12 @@ nothing but ticket management. - If you want to report a **bug**, [read "How to file a bug report" below](#how-to-file-a-bug-report) and *[use the provided template](#what-should-i-include-in-a-ticket)*. You do not need to do anything else with your ticket. -- If you want to post a **request** of any kind (feature request, documentation - request, ...), add `[Request]` to your issue's title (e.g. `[Request] Awesome new feature`). +- If you want to post a **feature request** or a **documentation request**, add `[Request]` + to your issue's title (e.g. `[Request] Awesome new feature`). A question on how to run/change/setup + something is **not** what qualifies as a request here, use the + [Mailinglist](https://groups.google.com/group/octoprint) or the + [Google+ Community](https://plus.google.com/communities/102771308349328485741) for + such support issues. - If you are a **developer** that wants to brainstorm a pull request or possible changes to the plugin system, add [Brainstorming] to your issue's title (e.g. `[Brainstorming] New plugin hook for doing some cool stuff`). diff --git a/src/octoprint/static/js/app/viewmodels/printerstate.js b/src/octoprint/static/js/app/viewmodels/printerstate.js index d1bfa10a..fea76dd7 100644 --- a/src/octoprint/static/js/app/viewmodels/printerstate.js +++ b/src/octoprint/static/js/app/viewmodels/printerstate.js @@ -14,6 +14,16 @@ $(function() { self.isLoading = ko.observable(undefined); self.isSdReady = ko.observable(undefined); + self.enablePrint = ko.computed(function() { + return self.isOperational() && self.isReady() && !self.isPrinting() && self.loginState.isUser() && self.filename() != undefined; + }); + self.enablePause = ko.computed(function() { + return self.isOperational() && (self.isPrinting() || self.isPaused()) && self.loginState.isUser(); + }); + self.enableCancel = ko.computed(function() { + return self.isOperational() && (self.isPrinting() || self.isPaused()) && self.loginState.isUser(); + }); + self.filename = ko.observable(undefined); self.progress = ko.observable(undefined); self.filesize = ko.observable(undefined); diff --git a/src/octoprint/templates/sidebar/state.jinja2 b/src/octoprint/templates/sidebar/state.jinja2 index 7bcfdd25..972a2605 100644 --- a/src/octoprint/templates/sidebar/state.jinja2 +++ b/src/octoprint/templates/sidebar/state.jinja2 @@ -14,7 +14,7 @@