diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-29 10:20:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-29 10:20:33 +0100 |
commit | 087fc5dadec95061c05bd0b6c86197a32ec4f23c (patch) | |
tree | b51c58ab3aaae3d75d6bb6cf86a0805116019a09 /client/src/app/+videos | |
parent | 3c065fe3b3e1385d59ad1980251d14b712648155 (diff) | |
download | PeerTube-087fc5dadec95061c05bd0b6c86197a32ec4f23c.tar.gz PeerTube-087fc5dadec95061c05bd0b6c86197a32ec4f23c.tar.zst PeerTube-087fc5dadec95061c05bd0b6c86197a32ec4f23c.zip |
Refactor video edition
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.html | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.html index f65cd8883..9bb13ba88 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html | |||
@@ -1,6 +1,12 @@ | |||
1 | <div class="video-edit" [formGroup]="form"> | 1 | <div class="video-edit" [formGroup]="form"> |
2 | <div ngbNav #nav="ngbNav" class="nav-tabs"> | 2 | <div ngbNav #nav="ngbNav" class="nav-tabs"> |
3 | 3 | ||
4 | <ng-template #pluginSettingTemplate let-pluginSetting> | ||
5 | <div class="form-group" [hidden]="isPluginFieldHidden(pluginSetting)"> | ||
6 | <my-dynamic-form-field [form]="pluginDataFormGroup" [formErrors]="formErrors['pluginData']" [setting]="pluginSetting.commonOptions"></my-dynamic-form-field> | ||
7 | </div> | ||
8 | </ng-template> | ||
9 | |||
4 | <ng-container ngbNavItem> | 10 | <ng-container ngbNavItem> |
5 | <a ngbNavLink i18n>Basic info</a> | 11 | <a ngbNavLink i18n>Basic info</a> |
6 | 12 | ||
@@ -146,12 +152,10 @@ | |||
146 | </ng-template> | 152 | </ng-template> |
147 | </my-peertube-checkbox> | 153 | </my-peertube-checkbox> |
148 | 154 | ||
149 | <ng-container ngbNavItem *ngIf="getPluginsFields('main').length !== 0"> | 155 | <ng-container |
150 | 156 | *ngFor="let pluginSetting of getPluginsFields('main')" | |
151 | <div *ngFor="let pluginSetting of getPluginsFields('main')" class="form-group" [hidden]="isPluginFieldHidden(pluginSetting)"> | 157 | [ngTemplateOutlet]="pluginSettingTemplate" [ngTemplateOutletContext]="{ $implicit: pluginSetting }" |
152 | <my-dynamic-form-field [form]="pluginDataFormGroup" [formErrors]="formErrors['pluginData']" [setting]="pluginSetting.commonOptions"></my-dynamic-form-field> | 158 | > |
153 | </div> | ||
154 | |||
155 | </ng-container> | 159 | </ng-container> |
156 | </div> | 160 | </div> |
157 | </div> | 161 | </div> |
@@ -353,9 +357,11 @@ | |||
353 | <div class="row plugin-settings"> | 357 | <div class="row plugin-settings"> |
354 | 358 | ||
355 | <div class="col-md-12 col-xl-8"> | 359 | <div class="col-md-12 col-xl-8"> |
356 | <div *ngFor="let pluginSetting of getPluginsFields('plugin-settings')" class="form-group" [hidden]="isPluginFieldHidden(pluginSetting)"> | 360 | <ng-container |
357 | <my-dynamic-form-field [form]="pluginDataFormGroup" [formErrors]="formErrors['pluginData']" [setting]="pluginSetting.commonOptions"></my-dynamic-form-field> | 361 | *ngFor="let pluginSetting of getPluginsFields('plugin-settings')" |
358 | </div> | 362 | [ngTemplateOutlet]="pluginSettingTemplate" [ngTemplateOutletContext]="{ $implicit: pluginSetting }" |
363 | > | ||
364 | </ng-container> | ||
359 | </div> | 365 | </div> |
360 | 366 | ||
361 | </div> | 367 | </div> |