]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-forms/input-readonly-copy.component.ts
allow private syndication feeds via a user feedToken
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / input-readonly-copy.component.ts
CommitLineData
3a1fed11
C
1import { Component, Input } from '@angular/core'
2import { Notifier } from '@app/core'
c6c0fa6c 3import { FormGroup } from '@angular/forms'
3a1fed11
C
4
5@Component({
6 selector: 'my-input-readonly-copy',
7 templateUrl: './input-readonly-copy.component.html',
8 styleUrls: [ './input-readonly-copy.component.scss' ]
9})
10export class InputReadonlyCopyComponent {
c6c0fa6c 11 @Input() id: string
3a1fed11
C
12 @Input() value = ''
13
66357162 14 constructor (private notifier: Notifier) { }
3a1fed11
C
15
16 activateCopiedMessage () {
66357162 17 this.notifier.success($localize`Copied`)
3a1fed11
C
18 }
19}