different options for clearnet domains

This commit is contained in:
Matt Hill
2025-08-06 18:45:41 -06:00
parent 177232ab28
commit 5109efcee2
6 changed files with 30 additions and 5 deletions

View File

@@ -529,4 +529,5 @@ export default {
551: '',
552: '',
553: '',
554: '',
} satisfies i18n

View File

@@ -528,4 +528,5 @@ export const ENGLISH = {
'Common': 551,
'Uncommon': 552,
'No addresses': 553,
'Change CA': 554,
} as const

View File

@@ -529,4 +529,5 @@ export default {
551: '',
552: '',
553: '',
554: '',
} satisfies i18n

View File

@@ -529,4 +529,5 @@ export default {
551: '',
552: '',
553: '',
554: '',
} satisfies i18n

View File

@@ -529,4 +529,5 @@ export default {
551: '',
552: '',
553: '',
554: '',
} satisfies i18n

View File

@@ -77,10 +77,24 @@ import { ClearnetDomain } from './interface.utils'
<button
tuiOption
new
iconStart="@tui.pencil"
(click)="edit(domain)"
[iconStart]="
domain.public ? '@tui.globe-lock' : '@tui.globe'
"
(click)="togglePrivate(domain)"
>
{{ 'Edit' | i18n }}
{{
domain.public
? ('Make private' | i18n)
: ('Make public' | i18n)
}}
</button>
<button
tuiOption
new
iconStart="@tui.award"
(click)="changeCa(domain)"
>
{{ 'Change CA' | i18n }}
</button>
</tui-opt-group>
<tui-opt-group>
@@ -132,9 +146,15 @@ export class InterfaceClearnetDomainsComponent {
open = false
async add() {}
// @TODO add, toggle, and change CA call same idempotent endpoint, either pkgAddDomain or osUiAddDomain
async edit(domain: ClearnetDomain) {}
async add() {
// @TODO baseDomain (select), subdomain (optional)(text), certificateAuthority (select), public/private (select)
}
async togglePrivate(domain: ClearnetDomain) {}
async changeCa(domain: ClearnetDomain) {}
async remove(fqdn: string) {
this.dialog