]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Input } from '@angular/core' | |
2 | import { Notifier } from '@app/core' | |
3 | import { FormGroup } from '@angular/forms' | |
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() id: string | |
12 | @Input() value = '' | |
13 | ||
14 | constructor (private notifier: Notifier) { } | |
15 | ||
16 | activateCopiedMessage () { | |
17 | this.notifier.success($localize`Copied`) | |
18 | } | |
19 | } |