]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-forms/input-readonly-copy.component.ts
Migrate to $localize
[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'
3a1fed11
C
3
4@Component({
5 selector: 'my-input-readonly-copy',
6 templateUrl: './input-readonly-copy.component.html',
7 styleUrls: [ './input-readonly-copy.component.scss' ]
8})
9export class InputReadonlyCopyComponent {
10 @Input() value = ''
11
66357162 12 constructor (private notifier: Notifier) { }
3a1fed11
C
13
14 activateCopiedMessage () {
66357162 15 this.notifier.success($localize`Copied`)
3a1fed11
C
16 }
17}