]>
Commit | Line | Data |
---|---|---|
3a1fed11 C |
1 | import { Component, Input } from '@angular/core' |
2 | import { Notifier } from '@app/core' | |
3 | import { I18n } from '@ngx-translate/i18n-polyfill' | |
4 | ||
5 | @Component({ | |
6 | selector: 'my-input-readonly-copy', | |
7 | templateUrl: './input-readonly-copy.component.html', | |
8 | styleUrls: [ './input-readonly-copy.component.scss' ] | |
9 | }) | |
10 | export class InputReadonlyCopyComponent { | |
11 | @Input() value = '' | |
12 | ||
13 | constructor ( | |
14 | private notifier: Notifier, | |
15 | private i18n: I18n | |
16 | ) { } | |
17 | ||
18 | activateCopiedMessage () { | |
19 | this.notifier.success(this.i18n('Copied')) | |
20 | } | |
21 | } |