Removed creation date from API key removal confirmation dialog.

This commit is contained in:
DebaucheryLibrarian 2024-08-31 05:13:00 +02:00
parent a0d38a179a
commit ec4f9768a8
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ async function createKey() {
} }
async function removeKey(key) { async function removeKey(key) {
if (confirm(`Are you sure you want to remove API key '${key.identifier}' (${format(key.createdAt, 'yyyy-MM-dd hh:mm')})? It can not be restored.`)) { // eslint-disable-line no-restricted-globals, no-alert if (confirm(`Are you sure you want to remove API key '${key.identifier}'? It can not be restored.`)) { // eslint-disable-line no-restricted-globals, no-alert
newKey.value = null; newKey.value = null;
await del(`/me/keys/${key.identifier}`); await del(`/me/keys/${key.identifier}`);