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