Merge pull request #3702 from cp2004/maintenance

Fix Application keys manual registration not showing with no keys registered
This commit is contained in:
Gina Häußge authored and GitHub committed 2020-09-03 12:22:31 +02:00
commit fadbe7bffe
3 files changed
+22 -22

No files matched your search

+1
View File
@@ -123,6 +123,7 @@ date of first contribution):
* [Khoi Pham](https://github.com/osubuu)
* [Federico Nembrini](https://github.com/FedericoNembrini)
* [Uri Shaked](https://github.com/urish)
* [Charlie Powell](https://github.com/cp2004)
* [Ollis Git](https://github.com/OllisGit)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 80 KiB

@@ -58,26 +58,25 @@
<li data-bind="css: {disabled: keys.currentPage() === keys.lastPage()}"><a href="javascript:void(0)" data-bind="click: keys.nextPage">»</a></li>
</ul>
</div>
<legend>{{ _('Manually generate an application key') }}</legend>
<form class="form-horizontal" onsubmit="return false;">
<div class="control-group">
<label class="control-label">{{ _('User') }}</label>
<div class="controls">
<select data-bind="options: access.users.listHelper.items, optionsText: 'name', optionsValue: 'name', value: editorUser"></select>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Application identifier') }}</label>
<div class="controls">
<input type="text" data-bind="value: editorApp">
</div>
</div>
<div class="control-group">
<div class="controls">
<button class="btn btn-primary" data-bind="click: generateKey">Generate</button>
</div>
</div>
</form>
</div>
<legend>{{ _('Manually generate an application key') }}</legend>
<form class="form-horizontal" onsubmit="return false;">
<div class="control-group">
<label class="control-label">{{ _('User') }}</label>
<div class="controls">
<select data-bind="options: access.users.listHelper.items, optionsText: 'name', optionsValue: 'name', value: editorUser"></select>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Application identifier') }}</label>
<div class="controls">
<input type="text" data-bind="value: editorApp">
</div>
</div>
<div class="control-group">
<div class="controls">
<button class="btn btn-primary" data-bind="click: generateKey">Generate</button>
</div>
</div>
</form>