From 5b070a395c90ee380495ea0a7ef3657bfbb19d6e Mon Sep 17 00:00:00 2001 From: Ivan Kalashnikov Date: Thu, 22 Jan 2026 08:23:55 +0700 Subject: [PATCH] fix: import translation constants in dialog share component --- src/app/core/share/dialog-share/dialog-share.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/core/share/dialog-share/dialog-share.component.ts b/src/app/core/share/dialog-share/dialog-share.component.ts index c1682b314..c59035113 100644 --- a/src/app/core/share/dialog-share/dialog-share.component.ts +++ b/src/app/core/share/dialog-share/dialog-share.component.ts @@ -8,6 +8,7 @@ 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'; interface ShareTargetButton { target: ShareTarget; @@ -33,7 +34,9 @@ interface ShareTargetButton { export class DialogShareComponent { private _dialogRef = inject(MatDialogRef); private _shareService = inject(ShareService); + readonly data = inject(MAT_DIALOG_DATA); + readonly T = T; mastodonInstance = this.data.mastodonInstance || 'mastodon.social';