only translations left

This commit is contained in:
Matt Hill
2025-08-09 09:29:47 -06:00
parent 29ddfad9d7
commit b4491a3f39
8 changed files with 16 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import {
Component,
inject,
input,
output,
} from '@angular/core'
import { CopyService, DialogService, i18nPipe } from '@start9labs/shared'
import { TUI_IS_MOBILE } from '@taiga-ui/cdk'
@@ -17,6 +18,7 @@ import { PolymorpheusComponent } from '@taiga-ui/polymorpheus'
import { QRModal } from 'src/app/routes/portal/modals/qr.component'
import { InterfaceComponent } from '../interface.component'
import { InterfaceService } from '../interface.service'
@Component({
selector: 'td[actions]',
@@ -62,8 +64,8 @@ import { InterfaceComponent } from '../interface.component'
>
{{ 'Actions' | i18n }}
<tui-data-list *tuiTextfieldDropdown="let close">
<button tuiOption new iconStart="@tui.eye" (click)="instructions()">
{{ 'View instructions' | i18n }}
<button tuiOption new iconStart="@tui.eye" (click)="onDetails.emit()">
{{ 'Address details' | i18n }}
</button>
@if (interface.value()?.type === 'ui') {
<a
@@ -127,6 +129,8 @@ export class AddressActionsComponent {
readonly href = input.required<string>()
readonly disabled = input.required<boolean>()
readonly onDetails = output<void>()
open = false
showQR() {
@@ -138,6 +142,4 @@ export class AddressActionsComponent {
})
.subscribe()
}
instructions() {}
}

View File

@@ -18,9 +18,9 @@ import { AddressActionsComponent } from './actions.component'
tuiIconButton
appearance="flat-grayscale"
iconStart="@tui.eye"
(click)="instructions(address.bullets)"
(click)="viewDetails(address.bullets)"
>
{{ 'View instructions' | i18n }}
{{ 'Address details' | i18n }}
</button>
</td>
<td [style.width.rem]="6">{{ address.type }}</td>
@@ -33,6 +33,7 @@ import { AddressActionsComponent } from './actions.component'
[disabled]="!isRunning()"
[href]="address.url"
[style.width.rem]="7"
(onDetails)="viewDetails(address.bullets)"
></td>
}
`,
@@ -61,7 +62,7 @@ export class InterfaceAddressItemComponent {
readonly isRunning = input.required<boolean>()
readonly dialog = inject(DialogService)
instructions(bullets: string[]) {
viewDetails(bullets: string[]) {
this.dialog
.openAlert(
`<ul>${bullets.map(b => `<li>${b}</li>`).join('')}</ul>` as i18nKey,

View File

@@ -3,7 +3,7 @@ import { T, utils } from '@start9labs/start-sdk'
import { ConfigService } from 'src/app/services/config.service'
import { toAuthorityName } from 'src/app/utils/acme'
import { GatewayPlus } from 'src/app/services/gateway.service'
import { i18nKey } from '@start9labs/shared'
import { DialogService, i18nKey } from '@start9labs/shared'
type AddressWithInfo = {
url: URL