RED-6890 fix remove only here dialog
This commit is contained in:
parent
1c23c22c7e
commit
bee3d1b76d
@ -1,23 +1,9 @@
|
||||
<section class="dialog">
|
||||
<div
|
||||
class="dialog-header heading-l"
|
||||
[innerHTML]="
|
||||
(data.removeFromDictionary
|
||||
? 'remove-annotations-dialog.remove-from-dictionary.title'
|
||||
: 'remove-annotations-dialog.remove-only-here.title'
|
||||
) | translate : { hint: data.hint }
|
||||
"
|
||||
></div>
|
||||
<div [innerHTML]="_headerTitle" class="dialog-header heading-l"></div>
|
||||
<form (submit)="save()" [formGroup]="form">
|
||||
<div
|
||||
class="dialog-content"
|
||||
[innerHTML]="
|
||||
(data.removeFromDictionary
|
||||
? 'remove-annotations-dialog.remove-from-dictionary.question'
|
||||
: 'remove-annotations-dialog.remove-only-here.question'
|
||||
) | translate : { hint: data.hint }
|
||||
"
|
||||
>
|
||||
<div class="dialog-content">
|
||||
<span [innerHTML]="_contentTitle"></span>
|
||||
|
||||
<div *ngIf="data.removeFromDictionary" class="content-wrapper">
|
||||
<table class="default-table">
|
||||
<thead>
|
||||
@ -55,9 +41,9 @@
|
||||
[type]="iconButtonTypes.primary"
|
||||
></iqser-icon-button>
|
||||
|
||||
<div class="all-caps-label cancel" mat-dialog-close [translate]="'remove-annotations-dialog.cancel'"></div>
|
||||
<div [translate]="'remove-annotations-dialog.cancel'" class="all-caps-label cancel" mat-dialog-close></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<iqser-circle-button class="dialog-close" icon="iqser:close" (action)="close()"></iqser-circle-button>
|
||||
<iqser-circle-button (action)="close()" class="dialog-close" icon="iqser:close"></iqser-circle-button>
|
||||
</section>
|
||||
|
||||
@ -17,6 +17,13 @@ export interface RemoveAnnotationsDialogInput {
|
||||
styleUrls: ['./remove-annotations-dialog.component.scss'],
|
||||
})
|
||||
export class RemoveAnnotationsDialogComponent extends BaseDialogComponent {
|
||||
protected readonly _headerTitle = this.data.removeFromDictionary
|
||||
? this._translateService.instant('remove-annotations-dialog.remove-from-dictionary.title', { hint: this.data.hint })
|
||||
: this._translateService.instant('remove-annotations-dialog.remove-only-here.title', { hint: this.data.hint });
|
||||
protected readonly _contentTitle = this.data.removeFromDictionary
|
||||
? this._translateService.instant('remove-annotations-dialog.remove-from-dictionary.question', { hint: this.data.hint })
|
||||
: this._translateService.instant('remove-annotations-dialog.remove-only-here.question', { hint: this.data.hint });
|
||||
|
||||
constructor(
|
||||
private readonly _translateService: TranslateService,
|
||||
protected readonly _dialogRef: MatDialogRef<RemoveAnnotationsDialogComponent>,
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 063f019de1336a5dc94a8a420f3e7d4b809ad150
|
||||
Subproject commit 2fe65233bc4186ba67c924efae4d82cfb8b89fe7
|
||||
Loading…
x
Reference in New Issue
Block a user