Merge pull request #3966 from costas-basdekis/patch-1

Add IDs and classes to terminal panels and buttons
This commit is contained in:
Gina Häußge authored and GitHub committed 2021-01-27 16:35:15 +01:00
commit 4fe6b6e568
2 files changed
+7 -6

No files matched your search

+1
View File
@@ -137,6 +137,7 @@ date of first contribution):
* [David Rifkind](https://github.com/drifkind)
* [Nils Hofmann](https://github.com/Master92)
* [Miroslav Šedivý](https://github.com/eumiro)
* [Costas Basdekis](https://github.com/costas-basdekis)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
+6 -6
View File
@@ -7,16 +7,16 @@
<a class="btn add-on" id="terminal-send" data-bind="click: sendCommand, enable: isOperational() && loginState.isUser()">{{ _('Send') }}</a>
</div>
</div>
<small class="pull-left" data-bind="visible: fancyFunctionality()">
<button class="btn btn-mini" data-bind="click: toggleAutoscroll, css: {active: autoscrollEnabled}">{{ _('Autoscroll') }}</button>
<small id="terminal-autoscroll-panel" class="pull-left" data-bind="visible: fancyFunctionality()">
<button class="btn btn-mini terminal-autoscroll" data-bind="click: toggleAutoscroll, css: {active: autoscrollEnabled}">{{ _('Autoscroll') }}</button>
<span data-bind="text: lineCount, visible: enableFancyFunctionality"></span>
<span data-bind="visible: !autoscrollEnabled() && enableFancyFunctionality()" style="display: none">(<a href="javascript:void(0)" data-bind="click: scrollToEnd">{{ _("Scroll to end") }}</a>)</span>
</small>
<small class="pull-right">
<a href="javascript:void(0)" data-bind="click: copyAll"><i class="fas fa-copy" title="{{ _('Copy all')|edq }}"></i> {{ _('Copy all') }}</a><br>
<a href="javascript:void(0)" data-bind="click: clearAllLogs"><i class="far fa-trash-alt" title="{{ _('Clear log window')|edq }}"></i> {{ _('Clear all') }}</a>
<small id="terminal-actions-panel" class="pull-right">
<a href="javascript:void(0)" data-bind="click: copyAll"><i class="fas fa-copy terminal-copy-all" title="{{ _('Copy all')|edq }}"></i> {{ _('Copy all') }}</a><br>
<a href="javascript:void(0)" data-bind="click: clearAllLogs"><i class="far fa-trash-alt terminal-clear-logs" title="{{ _('Clear log window')|edq }}"></i> {{ _('Clear all') }}</a>
</small>
<small class="pull-left text-warning" data-bind="visible: !fancyFunctionality()" style="display: none">
<small id="terminal-limited-functionality-panel" class="pull-left text-warning" data-bind="visible: !fancyFunctionality()" style="display: none">
{{ _('For performance reasons only a limited amount of terminal functionality is enabled right now.') }}
</small>
</div>