mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
edit instead of chnage acme and change gateway
This commit is contained in:
@@ -32,17 +32,10 @@ import {
|
||||
<tui-opt-group>
|
||||
<button
|
||||
tuiOption
|
||||
iconStart="@tui.globe"
|
||||
(click)="onGateway.emit(domain())"
|
||||
iconStart="@tui.pencil"
|
||||
(click)="onEdit.emit(domain())"
|
||||
>
|
||||
Change gateway
|
||||
</button>
|
||||
<button
|
||||
tuiOption
|
||||
iconStart="@tui.shield"
|
||||
(click)="onAcme.emit(domain())"
|
||||
>
|
||||
Change default ACME
|
||||
Edit
|
||||
</button>
|
||||
<button
|
||||
tuiOption
|
||||
@@ -100,8 +93,7 @@ import {
|
||||
export class DomainsItemComponent {
|
||||
readonly domain = input.required<any>()
|
||||
|
||||
onGateway = output<any>()
|
||||
onAcme = output<any>()
|
||||
onEdit = output<any>()
|
||||
onShowDns = output<any>()
|
||||
onTestDns = output<any>()
|
||||
onRemove = output<any>()
|
||||
|
||||
@@ -28,8 +28,9 @@ import { PlaceholderComponent } from 'src/app/routes/portal/components/placehold
|
||||
@for (domain of domains(); track $index) {
|
||||
<tr
|
||||
[domain]="domain"
|
||||
(onGateway)="changeGateway($event)"
|
||||
(onAcme)="changeAcme($event)"
|
||||
(onEdit)="edit($event)"
|
||||
(onShowDns)="showDns($event)"
|
||||
(onTestDns)="testDns($event)"
|
||||
(onRemove)="remove($event)"
|
||||
></tr>
|
||||
} @empty {
|
||||
@@ -86,11 +87,11 @@ export class DomainsTableComponent<T extends any> {
|
||||
})
|
||||
}
|
||||
|
||||
async changeGateway(domain: any) {
|
||||
async edit(domain: any) {
|
||||
const renameSpec = ISB.InputSpec.of({})
|
||||
|
||||
this.formDialog.open(FormComponent, {
|
||||
label: 'Change gateway',
|
||||
label: 'Edit',
|
||||
data: {
|
||||
spec: await configBuilderToSpec(renameSpec),
|
||||
buttons: [
|
||||
@@ -103,20 +104,7 @@ export class DomainsTableComponent<T extends any> {
|
||||
})
|
||||
}
|
||||
|
||||
async changeAcme(domain: any) {
|
||||
const renameSpec = ISB.InputSpec.of({})
|
||||
async showDns(domain: any) {}
|
||||
|
||||
this.formDialog.open(FormComponent, {
|
||||
label: 'Change default ACME',
|
||||
data: {
|
||||
spec: await configBuilderToSpec(renameSpec),
|
||||
buttons: [
|
||||
{
|
||||
text: 'Save',
|
||||
handler: (value: typeof renameSpec._TYPE) => {},
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
}
|
||||
async testDns(domain: any) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user