Merge branch 'maintenance' into bugfix/pip--no-cache-dir

This commit is contained in:
Ganey authored and GitHub committed 2018-04-03 12:46:05 +01:00
commit 22e894c245
8 files changed
+36 -20

No files matched your search

@@ -0,0 +1,12 @@
<div id="forgot_password_dialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="forgot_password_dialog_label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h3 id="forgot_password_dialog_label">{{ _('Forgot password?') }}</h3>
</div>
<div class="modal-body">
<p>{{ _('See detailed instructions at <a href="https://discourse.octoprint.org/t/i-forgot-my-octoprint-password-how-can-i-reset-it/215">I forgot my OctoPrint password, how can I reset it?</a>') }}</p>
</div>
<div class="modal-footer">
<button class="btn btn-block" data-dismiss="modal" aria-hidden="true">{{ _('Close') }}</button>
</div>
</div>
@@ -6,6 +6,7 @@
<form id="loginForm" data-bind="event: {'submit': loginState.prepareLogin }" onsubmit="return false; // this gets overwritten on view model bind">
<label for="login_user">{{ _('Username') }}</label>
<input type="text" id="login_user" name="username" data-bind="valueWithInit: loginState.loginUser" placeholder="{{ _('Username') }}" autocapitalize="none" autocorrect="off">
<span class="pull-right"><small><a href="#forgot_password_dialog" data-toggle="modal">{{ _('Forgot password?') }}</a></small></span>
<label for="login_pass">{{ _('Password') }}</label>
<input type="password" id="login_pass" name="password" data-bind="valueWithInit: loginState.loginPass" placeholder="{{ _('Password') }}">
<label class="checkbox">
@@ -18,3 +19,5 @@
<li><a href="#" id="usersettings_button" data-bind="click: function() { usersettings.show(); }">{{ _('User Settings') }}</a></li>
<li><a href="#" id="logout_button" data-bind="click: loginState.logout">{{ _('Logout') }}</a></li>
</ul>
{% include 'dialogs/forgot_password.jinja2' %}
+4 -2
View File
@@ -1545,7 +1545,7 @@ class MachineCom(object):
handled = False
# process oks
if line.startswith("ok") or (self.isPrinting() and supportWait and line == "wait"):
if line.startswith("ok") or (self.isPrinting() and not self.job_on_hold and supportWait and line == "wait"):
# ok only considered handled if it's alone on the line, might be
# a response to an M105 or an M114
self._handle_ok()
@@ -2930,7 +2930,9 @@ class MachineCom(object):
modified = True
else:
new_results.append((command, command_type, gcode, subcode, tags))
modified = True
else:
new_results.append((command, command_type, gcode, subcode, tags))
if modified:
if not new_results:
# gcode handler returned None or empty list for all commands, so we'll stop here and return a full out empty result