aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/input-readonly-copy.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-05 10:05:00 +0100
committerChocobozzz <me@florianbigard.com>2019-12-05 10:05:00 +0100
commit3a1fed11c52705002cbf2a17294509fb5a89237c (patch)
tree9140310efbd9ba7f1b7254e3fd580e84322792a7 /client/src/app/shared/forms/input-readonly-copy.component.ts
parent689a4f6946e47ddf4871fd43bbd1284a4dc79e68 (diff)
downloadPeerTube-3a1fed11c52705002cbf2a17294509fb5a89237c.tar.gz
PeerTube-3a1fed11c52705002cbf2a17294509fb5a89237c.tar.zst
PeerTube-3a1fed11c52705002cbf2a17294509fb5a89237c.zip
Support playlists in share modal
Diffstat (limited to 'client/src/app/shared/forms/input-readonly-copy.component.ts')
-rw-r--r--client/src/app/shared/forms/input-readonly-copy.component.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/input-readonly-copy.component.ts b/client/src/app/shared/forms/input-readonly-copy.component.ts
new file mode 100644
index 000000000..7528fb7a1
--- /dev/null
+++ b/client/src/app/shared/forms/input-readonly-copy.component.ts
@@ -0,0 +1,21 @@
1import { Component, Input } from '@angular/core'
2import { Notifier } from '@app/core'
3import { I18n } from '@ngx-translate/i18n-polyfill'
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 {
11 @Input() value = ''
12
13 constructor (
14 private notifier: Notifier,
15 private i18n: I18n
16 ) { }
17
18 activateCopiedMessage () {
19 this.notifier.success(this.i18n('Copied'))
20 }
21}