diff options
Diffstat (limited to 'client/src/app/shared/shared-forms/input-readonly-copy.component.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/input-readonly-copy.component.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-forms/input-readonly-copy.component.ts b/client/src/app/shared/shared-forms/input-readonly-copy.component.ts index 7528fb7a1..a67b0c691 100644 --- a/client/src/app/shared/shared-forms/input-readonly-copy.component.ts +++ b/client/src/app/shared/shared-forms/input-readonly-copy.component.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { Notifier } from '@app/core' | 2 | import { Notifier } from '@app/core' |
3 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
4 | 3 | ||
5 | @Component({ | 4 | @Component({ |
6 | selector: 'my-input-readonly-copy', | 5 | selector: 'my-input-readonly-copy', |
@@ -10,12 +9,9 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
10 | export class InputReadonlyCopyComponent { | 9 | export class InputReadonlyCopyComponent { |
11 | @Input() value = '' | 10 | @Input() value = '' |
12 | 11 | ||
13 | constructor ( | 12 | constructor (private notifier: Notifier) { } |
14 | private notifier: Notifier, | ||
15 | private i18n: I18n | ||
16 | ) { } | ||
17 | 13 | ||
18 | activateCopiedMessage () { | 14 | activateCopiedMessage () { |
19 | this.notifier.success(this.i18n('Copied')) | 15 | this.notifier.success($localize`Copied`) |
20 | } | 16 | } |
21 | } | 17 | } |