]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-forms/input-readonly-copy.component.ts
Live streaming implementation first step
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / input-readonly-copy.component.ts
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 }