BBFbyOpus
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user