Merge pull request #6103 from steindvart/make-close-buttons

Fix unlocalization text and 'Close' for single buttons
This commit is contained in:
Johannes Millan 2026-01-22 13:34:48 +01:00 committed by GitHub
commit 631659de2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -61,6 +61,6 @@
mat-button
(click)="close()"
>
Cancel
{{ T.G.CLOSE | translate }}
</button>
</div>

View file

@ -8,6 +8,8 @@ import { FormsModule } from '@angular/forms';
import { ShareService } from '../share.service';
import { ShareDialogOptions, ShareResult, ShareTarget } from '../share.model';
import { ShareFormatter } from '../share-formatter';
import { T } from '../../../t.const';
import { TranslatePipe } from '@ngx-translate/core';
interface ShareTargetButton {
target: ShareTarget;
@ -28,12 +30,15 @@ interface ShareTargetButton {
MatInputModule,
MatFormFieldModule,
FormsModule,
TranslatePipe,
],
})
export class DialogShareComponent {
private _dialogRef = inject(MatDialogRef<DialogShareComponent>);
private _shareService = inject(ShareService);
readonly data = inject<ShareDialogOptions>(MAT_DIALOG_DATA);
readonly T = T;
mastodonInstance = this.data.mastodonInstance || 'mastodon.social';

View file

@ -64,6 +64,6 @@
color="primary"
(click)="close()"
>
Close
{{ T.G.CLOSE | translate }}
</button>
</div>