From 3a1fed11c52705002cbf2a17294509fb5a89237c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Dec 2019 10:05:00 +0100 Subject: Support playlists in share modal --- .../shared/forms/input-readonly-copy.component.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 client/src/app/shared/forms/input-readonly-copy.component.ts (limited to 'client/src/app/shared/forms/input-readonly-copy.component.ts') 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 @@ +import { Component, Input } from '@angular/core' +import { Notifier } from '@app/core' +import { I18n } from '@ngx-translate/i18n-polyfill' + +@Component({ + selector: 'my-input-readonly-copy', + templateUrl: './input-readonly-copy.component.html', + styleUrls: [ './input-readonly-copy.component.scss' ] +}) +export class InputReadonlyCopyComponent { + @Input() value = '' + + constructor ( + private notifier: Notifier, + private i18n: I18n + ) { } + + activateCopiedMessage () { + this.notifier.success(this.i18n('Copied')) + } +} -- cgit v1.2.3