diff options
Diffstat (limited to 'client/src/app/core/confirm/confirm.component.ts')
-rw-r--r-- | client/src/app/core/confirm/confirm.component.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/core/confirm/confirm.component.ts b/client/src/app/core/confirm/confirm.component.ts index 147bc9d65..02b38489a 100644 --- a/client/src/app/core/confirm/confirm.component.ts +++ b/client/src/app/core/confirm/confirm.component.ts | |||
@@ -3,6 +3,7 @@ import { Component, HostListener, OnInit, ViewChild } from '@angular/core' | |||
3 | import { ModalDirective } from 'ngx-bootstrap/modal' | 3 | import { ModalDirective } from 'ngx-bootstrap/modal' |
4 | 4 | ||
5 | import { ConfirmService } from './confirm.service' | 5 | import { ConfirmService } from './confirm.service' |
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
6 | 7 | ||
7 | @Component({ | 8 | @Component({ |
8 | selector: 'my-confirm', | 9 | selector: 'my-confirm', |
@@ -20,7 +21,10 @@ export class ConfirmComponent implements OnInit { | |||
20 | inputValue = '' | 21 | inputValue = '' |
21 | confirmButtonText = '' | 22 | confirmButtonText = '' |
22 | 23 | ||
23 | constructor (private confirmService: ConfirmService) { | 24 | constructor ( |
25 | private confirmService: ConfirmService, | ||
26 | private i18n: I18n | ||
27 | ) { | ||
24 | // Empty | 28 | // Empty |
25 | } | 29 | } |
26 | 30 | ||
@@ -38,7 +42,7 @@ export class ConfirmComponent implements OnInit { | |||
38 | this.inputLabel = inputLabel | 42 | this.inputLabel = inputLabel |
39 | this.expectedInputValue = expectedInputValue | 43 | this.expectedInputValue = expectedInputValue |
40 | 44 | ||
41 | this.confirmButtonText = confirmButtonText || 'Confirm' | 45 | this.confirmButtonText = confirmButtonText || this.i18n('Confirm') |
42 | 46 | ||
43 | this.showModal() | 47 | this.showModal() |
44 | } | 48 | } |