Add shortcut for copying api keys

This commit is contained in:
phl0
2022-09-28 15:41:08 +02:00
parent f61c2cca12
commit 97af7abc4c
3 changed files with 44 additions and 1 deletions

View File

@@ -32,7 +32,7 @@
<tbody>
<?php foreach ($api_keys->result() as $row) { ?>
<tr>
<td><i class="fas fa-key"></i> <?php echo $row->key; ?></td>
<td><i class="fas fa-key"></i> <span class="api-key" id="<?php echo $row->key; ?>"><?php echo $row->key; ?></span> <span data-toggle="tooltip" data-original-title="Copy to Clipboard" onclick='copyApiKey("<?php echo $row->key; ?>")'><i class="copy-icon fas fa-copy"></span></td>
<td><?php echo $row->description; ?></td>
<td>
<?php
@@ -56,6 +56,7 @@
<a href="<?php echo site_url('api/delete/'.$row->key); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want delete API Key <?php echo $row->key; ?>?');">Delete</a>
</td>
</tr>
<?php } ?>