diff options
Diffstat (limited to 'client/src/app/shared/shared-share-modal/video-share.component.html')
-rw-r--r-- | client/src/app/shared/shared-share-modal/video-share.component.html | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.html b/client/src/app/shared/shared-share-modal/video-share.component.html index ecd36dd5a..7ff62e128 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.html +++ b/client/src/app/shared/shared-share-modal/video-share.component.html | |||
@@ -47,7 +47,7 @@ | |||
47 | <ng-template ngbNavContent> | 47 | <ng-template ngbNavContent> |
48 | <div class="nav-content"> | 48 | <div class="nav-content"> |
49 | <my-input-toggle-hidden | 49 | <my-input-toggle-hidden |
50 | [value]="getPlaylistIframeCode()" (change)="updateEmbedCode()" | 50 | [value]="customizations.onlyEmbedUrl ? getPlaylistEmbedUrl() : getPlaylistIframeCode()" (change)="updateEmbedCode()" |
51 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" | 51 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" |
52 | ></my-input-toggle-hidden> | 52 | ></my-input-toggle-hidden> |
53 | 53 | ||
@@ -67,8 +67,18 @@ | |||
67 | <div class="filters"> | 67 | <div class="filters"> |
68 | 68 | ||
69 | <div class="form-group" *ngIf="video"> | 69 | <div class="form-group" *ngIf="video"> |
70 | <my-peertube-checkbox inputName="includeVideoInPlaylist" [(ngModel)]="includeVideoInPlaylist" i18n-labelText | 70 | <my-peertube-checkbox |
71 | labelText="Share the playlist at this video position"></my-peertube-checkbox> | 71 | inputName="includeVideoInPlaylist" [(ngModel)]="includeVideoInPlaylist" |
72 | i18n-labelText labelText="Share the playlist at this video position" | ||
73 | ></my-peertube-checkbox> | ||
74 | </div> | ||
75 | |||
76 | <div class="form-group"> | ||
77 | <my-peertube-checkbox | ||
78 | *ngIf="isInPlaylistEmbedTab()" | ||
79 | inputName="onlyEmbedUrl" [(ngModel)]="customizations.onlyEmbedUrl" | ||
80 | i18n-labelText labelText="Only display embed URL" | ||
81 | ></my-peertube-checkbox> | ||
72 | </div> | 82 | </div> |
73 | 83 | ||
74 | </div> | 84 | </div> |
@@ -114,7 +124,7 @@ | |||
114 | <ng-template ngbNavContent> | 124 | <ng-template ngbNavContent> |
115 | <div class="nav-content"> | 125 | <div class="nav-content"> |
116 | <my-input-toggle-hidden | 126 | <my-input-toggle-hidden |
117 | [value]="getVideoIframeCode()" (ngModelChange)="updateEmbedCode()" | 127 | [value]="customizations.onlyEmbedUrl ? getVideoEmbedUrl() : getVideoIframeCode()" (ngModelChange)="updateEmbedCode()" |
118 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" | 128 | [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true" |
119 | ></my-input-toggle-hidden> | 129 | ></my-input-toggle-hidden> |
120 | 130 | ||
@@ -160,6 +170,14 @@ | |||
160 | </select> | 170 | </select> |
161 | </div> | 171 | </div> |
162 | </div> | 172 | </div> |
173 | |||
174 | <div class="form-group"> | ||
175 | <my-peertube-checkbox | ||
176 | *ngIf="isInVideoEmbedTab()" | ||
177 | inputName="onlyEmbedUrl" [(ngModel)]="customizations.onlyEmbedUrl" | ||
178 | i18n-labelText labelText="Only display embed URL" | ||
179 | ></my-peertube-checkbox> | ||
180 | </div> | ||
163 | </div> | 181 | </div> |
164 | 182 | ||
165 | <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed"> | 183 | <div class="advanced-filters collapse-transition" [ngbCollapse]="isAdvancedCustomizationCollapsed"> |
@@ -200,7 +218,7 @@ | |||
200 | ></my-peertube-checkbox> | 218 | ></my-peertube-checkbox> |
201 | </div> | 219 | </div> |
202 | 220 | ||
203 | <div *ngIf="!isLocalVideo() && !isVideoInEmbedTab()" class="form-group"> | 221 | <div *ngIf="!isLocalVideo() && !isInVideoEmbedTab()" class="form-group"> |
204 | <my-peertube-checkbox | 222 | <my-peertube-checkbox |
205 | inputName="originUrl" [(ngModel)]="customizations.originUrl" | 223 | inputName="originUrl" [(ngModel)]="customizations.originUrl" |
206 | i18n-labelText labelText="Use origin instance URL" | 224 | i18n-labelText labelText="Use origin instance URL" |
@@ -208,7 +226,7 @@ | |||
208 | </div> | 226 | </div> |
209 | </div> | 227 | </div> |
210 | 228 | ||
211 | <ng-container *ngIf="isVideoInEmbedTab()"> | 229 | <ng-container *ngIf="isInVideoEmbedTab()"> |
212 | <div class="form-group"> | 230 | <div class="form-group"> |
213 | <my-peertube-checkbox | 231 | <my-peertube-checkbox |
214 | inputName="title" [(ngModel)]="customizations.title" | 232 | inputName="title" [(ngModel)]="customizations.title" |