]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
add description to live transcoding profile selector
authorRigel Kent <sendmemail@rigelk.eu>
Fri, 29 Jan 2021 08:04:36 +0000 (09:04 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Fri, 29 Jan 2021 08:04:40 +0000 (09:04 +0100)
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html

index 5f02d00e8070a7628d362815cd1b469294857d4a..796aa12edccd221c059e10c43f9caec11a3e8faf 100644 (file)
                     {{ item }}
                     <ng-container *ngIf="item === 'default'">
                       <br>
-                      <span class="text-muted">x264, targeting maximum device compatibility</span>
+                      <span class="text-muted" i18n>x264, targeting maximum device compatibility</span>
                     </ng-container>
                   </ng-template>
                 </ng-select>
 
                 <div class="form-group mt-4" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() || !isLiveTranscodingEnabled() }">
                   <label i18n for="liveTranscodingProfile">Live transcoding profile</label>
-                  <span class="text-muted ml-1" i18n>New live transcoding profiles can be added by PeerTube plugins</span>
+                  <span class="text-muted ml-1" i18n>new live transcoding profiles can be added by PeerTube plugins</span>
 
-                  <div class="peertube-select-container">
-                    <select id="liveTranscodingProfile" formControlName="profile" class="form-control">
-                      <option *ngFor="let liveTranscodingProfileOption of getAvailableTranscodingProfile('live')" [value]="liveTranscodingProfileOption">
-                        {{ liveTranscodingProfileOption }}
-                      </option>
-                    </select>
-                  </div>
+                  <ng-select
+                    id="liveTranscodingProfile"
+                    formControlName="profile"
+                    [items]="getAvailableTranscodingProfile('live')"
+                    [clearable]="false"
+                  >
+                    <ng-template ng-option-tmp let-item="item" let-index="index">
+                      {{ item }}
+                      <ng-container *ngIf="item === 'default'">
+                        <br>
+                        <span class="text-muted" i18n>x264, targeting maximum device compatibility</span>
+                      </ng-container>
+                    </ng-template>
+                  </ng-select>
                   <div *ngIf="formErrors.live.transcoding.profile" class="form-error">{{ formErrors.live.transcoding.profile }}</div>
                 </div>