]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix videos add tabs style
authorChocobozzz <me@florianbigard.com>
Thu, 9 Aug 2018 17:08:54 +0000 (19:08 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 9 Aug 2018 17:08:54 +0000 (19:08 +0200)
client/src/app/videos/+video-edit/video-add.component.html
client/src/app/videos/+video-edit/video-add.component.scss

index 4c30ddefc7bf7f8f73f582e50dc2df4f998058b0..e14e23aeded894f6ffec55a68e2e2e11db278aff 100644 (file)
@@ -4,18 +4,27 @@
     <ng-container *ngIf="secondStepType === 'upload'" i18n>Upload {{ videoName }}</ng-container>
   </div>
 
-  <tabset class="video-add-tabset root-tabset bootstrap" [ngClass]="{ 'hide-nav': secondStepType !== undefined }">
+  <ngb-tabset class="video-add-tabset root-tabset bootstrap" [ngClass]="{ 'hide-nav': secondStepType !== undefined }">
 
-    <tab i18n-heading heading="Upload a file">
-      <my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)"></my-video-upload>
-    </tab>
+    <ngb-tab i18n-title title="">
+      <ng-template ngbTabTitle><span i18n>Upload a file</span></ng-template>
+      <ng-template ngbTabContent>
+        <my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)"></my-video-upload>
+      </ng-template>
+    </ngb-tab>
 
-    <tab *ngIf="isVideoImportHttpEnabled()" i18n-heading heading="Import with URL">
-      <my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)"></my-video-import-url>
-    </tab>
+    <ngb-tab *ngIf="isVideoImportHttpEnabled()">
+      <ng-template ngbTabTitle><span i18n>Import with URL</span></ng-template>
+      <ng-template ngbTabContent>
+        <my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)"></my-video-import-url>
+      </ng-template>
+    </ngb-tab>
 
-    <tab *ngIf="isVideoImportTorrentEnabled()" i18n-heading heading="Import with torrent">
-      <my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)"></my-video-import-torrent>
-    </tab>
-  </tabset>
+    <ngb-tab *ngIf="isVideoImportTorrentEnabled()">
+      <ng-template ngbTabTitle><span i18n>Import with torrent</span></ng-template>
+      <ng-template ngbTabContent>
+        <my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)"></my-video-import-torrent>
+      </ng-template>
+    </ngb-tab>
+  </ngb-tabset>
 </div>
index c1f96cc374faf92b84d9b2762d60b94567a05e98..892520e408afba4ebcbb2f984939e411e4dfb767 100644 (file)
@@ -7,7 +7,7 @@ $border-color: #EAEAEA;
 
 $background-color:  #F7F7F7;
 
-/deep/ tabset.root-tabset.video-add-tabset {
+/deep/ .root-tabset.video-add-tabset {
   &.hide-nav .nav {
     display: none !important;
   }