RED-2456: Fixed remove annotations cancel

This commit is contained in:
Adina Țeudan 2021-10-14 11:27:20 +03:00
parent 8c4046ab7e
commit ecfd62725f
3 changed files with 2 additions and 8 deletions

View File

@ -49,9 +49,7 @@
<button [disabled]="!redactionForm.valid" color="primary" mat-flat-button type="submit">
{{ 'remove-annotations-dialog.confirm' | translate }}
</button>
<button (click)="deny()" color="primary" mat-flat-button>
{{ 'remove-annotations-dialog.deny' | translate }}
</button>
<div class="all-caps-label cancel" mat-dialog-close translate="remove-annotations-dialog.cancel"></div>
</div>
</form>

View File

@ -31,10 +31,6 @@ export class RemoveAnnotationsDialogComponent {
});
}
deny() {
this.dialogRef.close();
}
confirm() {
this.dialogRef.close({ comment: this.redactionForm.getRawValue().comment });
}

View File

@ -1317,7 +1317,7 @@
"redaction": "Redaction",
"remove-annotations-dialog": {
"confirm": "Yes, proceed and remove!",
"deny": "Cancel",
"cancel": "Cancel",
"dictionary": "Dictionary",
"image-type": "Image: {typeLabel}",
"remove-from-dictionary": {