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