Appkey: Copy key to clipboard
This commit is contained in:
1 parent
b0e7df47a6
commit
e95e546c08
2 files changed
+1
-2
No files matched your search
@@ -20,7 +20,6 @@ from octoprint.util import atomic_write
|
||||
|
||||
"""
|
||||
TODO:
|
||||
* add key persistence
|
||||
* add central management settings panel for *all* user's keys
|
||||
* bulk delete: delete all, all on page, all by user?
|
||||
* write documentation
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</thead>
|
||||
<tbody data-bind="foreach: keys.paginatedItems">
|
||||
<tr>
|
||||
<td class="settings_plugin_appauth_keys_app"><span data-bind="text: app_id"></span><br /><small class="muted">{{ _('API Key') }}: <span data-bind="text: api_key"></span></small></td>
|
||||
<td class="settings_plugin_appauth_keys_app"><span data-bind="text: app_id"></span><br /><small class="muted">{{ _('API Key') }}: <span data-bind="text: api_key"></span> <a href="javascript:void(0)" title="{{ _('Copy API Key to clipboard') }}" data-bind="click: function() { copyToClipboard(api_key) }"><i class="fa fa-copy"></i></a></small></td>
|
||||
<td class="settings_plugin_appauth_keys_actions"><a href="javascript:void(0)" title="{{ _('Revoke') }}" class="fa fa-trash-o" data-bind="click: function() { $parent.revokeKey($data.api_key) }"></a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in new issue
Block a user