Added API keys. Minor modifications for other views.
This commit is contained in:
@ -5,7 +5,6 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Router } from '@angular/router';
|
||||
import { DOCUMENT } from '@angular/common';
|
||||
import { HermesClientService } from '../../hermes-client.service';
|
||||
|
||||
@ -21,19 +20,19 @@ import { HermesClientService } from '../../hermes-client.service';
|
||||
styleUrl: './connection-item.component.scss'
|
||||
})
|
||||
export class ConnectionItemComponent {
|
||||
router = inject(Router);
|
||||
http = inject(HttpClient);
|
||||
client = inject(HermesClientService);
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly client = inject(HermesClientService);
|
||||
|
||||
connection = input.required<Connection>();
|
||||
|
||||
constructor(@Inject(DOCUMENT) private document: Document) { }
|
||||
|
||||
delete(conn: Connection) {
|
||||
this.client.deleteConnection(conn.name);
|
||||
delete() {
|
||||
this.client.deleteConnection(this.connection().name);
|
||||
}
|
||||
|
||||
renew(conn: Connection) {
|
||||
renew() {
|
||||
const conn = this.connection();
|
||||
this.http.post('/api/auth/connections', {
|
||||
name: conn.name,
|
||||
type: conn.type,
|
||||
|
Reference in New Issue
Block a user