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