From c7e1e432b0e5d321ff2331cf3ddff56c43500788 Mon Sep 17 00:00:00 2001 From: Julien Lemaire Date: Mon, 11 Dec 2017 11:59:39 -0500 Subject: Copy to clipboard (#142) * Copy buttons on share view Ugly but working buttons to copy video url and video iframe code. Add ngx-clipboard dependency to allow easy copy to clipboard directive. * Designed copy buttons Using some css (scss) rules to make buttons look better. * First version on copy feedback Little success alert message on copy. Fix lint errors Move dependencies to dev dependencies * Update button design * Use of notifications service Provides feedback of copy action to the user through the angular2-notifications module. --- .../app/videos/+video-watch/video-share.component.html | 18 ++++++++++++++++-- .../app/videos/+video-watch/video-share.component.scss | 3 +++ .../app/videos/+video-watch/video-share.component.ts | 12 ++++++++++-- .../src/app/videos/+video-watch/video-watch.module.ts | 4 +++- 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 client/src/app/videos/+video-watch/video-share.component.scss (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/+video-watch/video-share.component.html b/client/src/app/videos/+video-watch/video-share.component.html index 36ec38d88..52ee36a2e 100644 --- a/client/src/app/videos/+video-watch/video-share.component.html +++ b/client/src/app/videos/+video-watch/video-share.component.html @@ -12,12 +12,26 @@