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

View File

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

View File

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