aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/modal/confirm.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/modal/confirm.component.ts')
-rw-r--r--client/src/app/modal/confirm.component.ts6
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'
3import { POP_STATE_MODAL_DISMISS } from '@app/helpers' 3import { POP_STATE_MODAL_DISMISS } from '@app/helpers'
4import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 4import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
5import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' 5import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref'
6import { 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 }