aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/input-readonly-copy.component.ts
blob: b04d69d057e33ed64dcd3291ed14e1f9d7a0c3a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Component, Input } from '@angular/core'
import { Notifier } from '@app/core'

@Component({
  selector: 'my-input-readonly-copy',
  templateUrl: './input-readonly-copy.component.html',
  styleUrls: [ './input-readonly-copy.component.scss' ]
})
export class InputReadonlyCopyComponent {
  @Input() id: string
  @Input() value = ''

  constructor (private notifier: Notifier) { }

  activateCopiedMessage () {
    this.notifier.success($localize`Copied`)
  }
}