diff options
Diffstat (limited to 'client/src/app/modal')
-rw-r--r-- | client/src/app/modal/confirm.component.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/modal/confirm.component.ts b/client/src/app/modal/confirm.component.ts index 2c7ef46c4..457dd1f3f 100644 --- a/client/src/app/modal/confirm.component.ts +++ b/client/src/app/modal/confirm.component.ts | |||
@@ -3,7 +3,6 @@ import { ConfirmService } from '@app/core/confirm/confirm.service' | |||
3 | import { POP_STATE_MODAL_DISMISS } from '@app/helpers' | 3 | import { POP_STATE_MODAL_DISMISS } from '@app/helpers' |
4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
5 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' | 5 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' |
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
7 | 6 | ||
8 | @Component({ | 7 | @Component({ |
9 | selector: 'my-confirm', | 8 | selector: 'my-confirm', |
@@ -25,8 +24,7 @@ export class ConfirmComponent implements OnInit { | |||
25 | 24 | ||
26 | constructor ( | 25 | constructor ( |
27 | private modalService: NgbModal, | 26 | private modalService: NgbModal, |
28 | private confirmService: ConfirmService, | 27 | private confirmService: ConfirmService |
29 | private i18n: I18n | ||
30 | ) { } | 28 | ) { } |
31 | 29 | ||
32 | ngOnInit () { | 30 | ngOnInit () { |
@@ -38,7 +36,7 @@ export class ConfirmComponent implements OnInit { | |||
38 | this.inputLabel = inputLabel | 36 | this.inputLabel = inputLabel |
39 | this.expectedInputValue = expectedInputValue | 37 | this.expectedInputValue = expectedInputValue |
40 | 38 | ||
41 | this.confirmButtonText = confirmButtonText || this.i18n('Confirm') | 39 | this.confirmButtonText = confirmButtonText || $localize`Confirm` |
42 | 40 | ||
43 | this.showModal() | 41 | this.showModal() |
44 | } | 42 | } |