BBFbyOpus

This commit is contained in:
Artem Kokos
2026-04-01 22:51:24 +07:00
parent 732313a61c
commit b6b25fa2a1
11 changed files with 160 additions and 72 deletions

View File

@@ -497,13 +497,13 @@
},
async revokeApiKey(key, name) {
if (confirm(`Отозвать ключ "${name}"?`)) {
await this.request(`/api-keys/${key}`, 'DELETE');
await this.request('/api-keys/revoke', 'POST', null, { key });
this.toast(`Ключ "${name}" отозван`, 'success');
this.fetchApiKeys();
}
},
async activateApiKey(key, name) {
await this.request(`/api-keys/${key}/activate`, 'POST');
await this.request('/api-keys/activate', 'POST', null, { key });
this.toast(`Ключ "${name}" активирован`, 'success');
this.fetchApiKeys();
},
@@ -532,4 +532,4 @@
}).mount('#app')
</script>
</body>
</html>
</html>