mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Merge pull request #6103 from steindvart/make-close-buttons
Fix unlocalization text and 'Close' for single buttons
This commit is contained in:
commit
631659de2e
3 changed files with 7 additions and 2 deletions
|
|
@ -61,6 +61,6 @@
|
|||
mat-button
|
||||
(click)="close()"
|
||||
>
|
||||
Cancel
|
||||
{{ T.G.CLOSE | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,6 @@
|
|||
color="primary"
|
||||
(click)="close()"
|
||||
>
|
||||
Close
|
||||
{{ T.G.CLOSE | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue