aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-share.component.html
diff options
context:
space:
mode:
authorJulien Lemaire <sticmac@outlook.fr>2017-12-11 11:59:39 -0500
committerChocobozzz <me@florianbigard.com>2017-12-11 17:59:39 +0100
commitc7e1e432b0e5d321ff2331cf3ddff56c43500788 (patch)
tree753cdd499a0f04059869a96f41fb6a20d8eef258 /client/src/app/videos/+video-watch/video-share.component.html
parented9f9f5fb04437b8dcf164fd0ae9c29b90826096 (diff)
downloadPeerTube-c7e1e432b0e5d321ff2331cf3ddff56c43500788.tar.gz
PeerTube-c7e1e432b0e5d321ff2331cf3ddff56c43500788.tar.zst
PeerTube-c7e1e432b0e5d321ff2331cf3ddff56c43500788.zip
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.
Diffstat (limited to 'client/src/app/videos/+video-watch/video-share.component.html')
-rw-r--r--client/src/app/videos/+video-watch/video-share.component.html18
1 files changed, 16 insertions, 2 deletions
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 @@
12 <div class="modal-body"> 12 <div class="modal-body">
13 <div class="form-group"> 13 <div class="form-group">
14 <label>URL</label> 14 <label>URL</label>
15 <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" /> 15 <div class="input-group">
16 <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
17 <div class="input-group-btn" placement="bottom right">
18 <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-default btn-search">
19 <span class="glyphicon glyphicon-copy"></span>
20 </button>
21 </div>
22 </div>
16 </div> 23 </div>
17 24
18 <div class="form-group"> 25 <div class="form-group">
19 <label>Embed</label> 26 <label>Embed</label>
20 <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" /> 27 <div class="input-group">
28 <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
29 <div class="input-group-btn" placement="bottom right">
30 <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-default btn-search">
31 <span class="glyphicon glyphicon-copy"></span>
32 </button>
33 </div>
34 </div>
21 </div> 35 </div>
22 36
23 <div *ngIf="notSecure()" class="alert alert-warning"> 37 <div *ngIf="notSecure()" class="alert alert-warning">