diff options
Diffstat (limited to 'client/src/app/shared/shared-forms/select')
-rw-r--r-- | client/src/app/shared/shared-forms/select/select-checkbox.component.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-checkbox.component.ts b/client/src/app/shared/shared-forms/select/select-checkbox.component.ts index fd683ae5d..eb0c49034 100644 --- a/client/src/app/shared/shared-forms/select/select-checkbox.component.ts +++ b/client/src/app/shared/shared-forms/select/select-checkbox.component.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import { Component, Input, forwardRef, OnInit } from '@angular/core' | 1 | import { Component, forwardRef, Input, OnInit } from '@angular/core' |
2 | import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import { SelectOptionsItem } from './select-options.component' | 3 | import { SelectOptionsItem } from './select-options.component' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
5 | 4 | ||
6 | export type ItemSelectCheckboxValue = { id?: string | number, group?: string } | string | 5 | export type ItemSelectCheckboxValue = { id?: string | number, group?: string } | string |
7 | 6 | ||
@@ -25,12 +24,8 @@ export class SelectCheckboxComponent implements OnInit, ControlValueAccessor { | |||
25 | @Input() maxSelectedItems: number | 24 | @Input() maxSelectedItems: number |
26 | @Input() placeholder: string | 25 | @Input() placeholder: string |
27 | 26 | ||
28 | constructor ( | ||
29 | private i18n: I18n | ||
30 | ) {} | ||
31 | |||
32 | ngOnInit () { | 27 | ngOnInit () { |
33 | if (!this.placeholder) this.placeholder = this.i18n('Add a new option') | 28 | if (!this.placeholder) this.placeholder = $localize`Add a new option` |
34 | } | 29 | } |
35 | 30 | ||
36 | propagateChange = (_: any) => { /* empty */ } | 31 | propagateChange = (_: any) => { /* empty */ } |