diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-12 22:00:17 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-12 22:00:17 +0200 |
commit | ad42bea3a55ca7937f082cc641764de70ce34bd1 (patch) | |
tree | 621302fd9fa39ad5e76c5c0a5e7197464a0ea125 /client/src/app/videos | |
parent | d8e689b864749648d03cf4391fd4a475126f01cd (diff) | |
download | PeerTube-ad42bea3a55ca7937f082cc641764de70ce34bd1.tar.gz PeerTube-ad42bea3a55ca7937f082cc641764de70ce34bd1.tar.zst PeerTube-ad42bea3a55ca7937f082cc641764de70ce34bd1.zip |
Client: update to angular 4
Diffstat (limited to 'client/src/app/videos')
7 files changed, 11 insertions, 12 deletions
diff --git a/client/src/app/videos/video-edit/video-edit.component.scss b/client/src/app/videos/video-edit/video-edit.component.scss index 11ee3297e..92b731191 100644 --- a/client/src/app/videos/video-edit/video-edit.component.scss +++ b/client/src/app/videos/video-edit/video-edit.component.scss | |||
@@ -20,11 +20,6 @@ | |||
20 | display: block; | 20 | display: block; |
21 | } | 21 | } |
22 | 22 | ||
23 | .name_file { | ||
24 | display: inline-block; | ||
25 | margin-left: 10px; | ||
26 | } | ||
27 | |||
28 | .form-group { | 23 | .form-group { |
29 | margin-bottom: 10px; | 24 | margin-bottom: 10px; |
30 | } | 25 | } |
diff --git a/client/src/app/videos/video-edit/video-update.component.html b/client/src/app/videos/video-edit/video-update.component.html index 665a952d0..2e10d5bf7 100644 --- a/client/src/app/videos/video-edit/video-update.component.html +++ b/client/src/app/videos/video-edit/video-update.component.html | |||
@@ -1,4 +1,4 @@ | |||
1 | <h3>Update {{ video.name }}</h3> | 1 | <h3>Update {{ video?.name }}</h3> |
2 | 2 | ||
3 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | 3 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
4 | 4 | ||
diff --git a/client/src/app/videos/video-watch/video-magnet.component.ts b/client/src/app/videos/video-watch/video-magnet.component.ts index 8bee848a4..894fa45fc 100644 --- a/client/src/app/videos/video-watch/video-magnet.component.ts +++ b/client/src/app/videos/video-watch/video-magnet.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, Input, ViewChild } from '@angular/core'; | 1 | import { Component, Input, ViewChild } from '@angular/core'; |
2 | 2 | ||
3 | import { ModalDirective } from 'ng2-bootstrap/modal'; | 3 | import { ModalDirective } from 'ngx-bootstrap/modal'; |
4 | 4 | ||
5 | import { Video } from '../shared'; | 5 | import { Video } from '../shared'; |
6 | 6 | ||
diff --git a/client/src/app/videos/video-watch/video-report.component.ts b/client/src/app/videos/video-watch/video-report.component.ts index c4cf936ce..528005b84 100644 --- a/client/src/app/videos/video-watch/video-report.component.ts +++ b/client/src/app/videos/video-watch/video-report.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, Input, OnInit, ViewChild } from '@angular/core'; | 1 | import { Component, Input, OnInit, ViewChild } from '@angular/core'; |
2 | import { FormBuilder, FormGroup } from '@angular/forms'; | 2 | import { FormBuilder, FormGroup } from '@angular/forms'; |
3 | 3 | ||
4 | import { ModalDirective } from 'ng2-bootstrap/modal'; | 4 | import { ModalDirective } from 'ngx-bootstrap/modal'; |
5 | import { NotificationsService } from 'angular2-notifications'; | 5 | import { NotificationsService } from 'angular2-notifications'; |
6 | 6 | ||
7 | import { FormReactive, VideoAbuseService, VIDEO_ABUSE_REASON } from '../../shared'; | 7 | import { FormReactive, VideoAbuseService, VIDEO_ABUSE_REASON } from '../../shared'; |
diff --git a/client/src/app/videos/video-watch/video-share.component.ts b/client/src/app/videos/video-watch/video-share.component.ts index 0b85052cd..aa921afc2 100644 --- a/client/src/app/videos/video-watch/video-share.component.ts +++ b/client/src/app/videos/video-watch/video-share.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, Input, ViewChild } from '@angular/core'; | 1 | import { Component, Input, ViewChild } from '@angular/core'; |
2 | 2 | ||
3 | import { ModalDirective } from 'ng2-bootstrap/modal'; | 3 | import { ModalDirective } from 'ngx-bootstrap/modal'; |
4 | 4 | ||
5 | import { Video } from '../shared'; | 5 | import { Video } from '../shared'; |
6 | 6 | ||
diff --git a/client/src/app/videos/video-watch/video-watch.component.html b/client/src/app/videos/video-watch/video-watch.component.html index 2a6b15dc9..19e9bd9ed 100644 --- a/client/src/app/videos/video-watch/video-watch.component.html +++ b/client/src/app/videos/video-watch/video-watch.component.html | |||
@@ -78,7 +78,7 @@ | |||
78 | <span class="glyphicon glyphicon-option-horizontal"></span> More | 78 | <span class="glyphicon glyphicon-option-horizontal"></span> More |
79 | </button> | 79 | </button> |
80 | 80 | ||
81 | <ul dropdownMenu id="more-menu" role="menu" aria-labelledby="single-button"> | 81 | <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> |
82 | <li *ngIf="canUserUpdateVideo()" role="menuitem"> | 82 | <li *ngIf="canUserUpdateVideo()" role="menuitem"> |
83 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.id ]"> | 83 | <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.id ]"> |
84 | <span class="glyphicon glyphicon-pencil"></span> Update | 84 | <span class="glyphicon glyphicon-pencil"></span> Update |
@@ -142,8 +142,8 @@ | |||
142 | </div> | 142 | </div> |
143 | </div> | 143 | </div> |
144 | 144 | ||
145 | <template [ngIf]="video !== null"> | 145 | <ng-template [ngIf]="video !== null"> |
146 | <my-video-share #videoShareModal [video]="video"></my-video-share> | 146 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
147 | <my-video-magnet #videoMagnetModal [video]="video"></my-video-magnet> | 147 | <my-video-magnet #videoMagnetModal [video]="video"></my-video-magnet> |
148 | <my-video-report #videoReportModal [video]="video"></my-video-report> | 148 | <my-video-report #videoReportModal [video]="video"></my-video-report> |
149 | </template> | 149 | </ng-template> |
diff --git a/client/src/app/videos/videos.module.ts b/client/src/app/videos/videos.module.ts index fa37ad966..4f2839c85 100644 --- a/client/src/app/videos/videos.module.ts +++ b/client/src/app/videos/videos.module.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | import { NgModule } from '@angular/core'; | 1 | import { NgModule } from '@angular/core'; |
2 | 2 | ||
3 | // import { TagInputModule } from 'ng2-tag-input'; | ||
4 | |||
3 | import { VideosRoutingModule } from './videos-routing.module'; | 5 | import { VideosRoutingModule } from './videos-routing.module'; |
4 | import { VideosComponent } from './videos.component'; | 6 | import { VideosComponent } from './videos.component'; |
5 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit'; | 7 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit'; |
@@ -16,6 +18,8 @@ import { SharedModule } from '../shared'; | |||
16 | 18 | ||
17 | @NgModule({ | 19 | @NgModule({ |
18 | imports: [ | 20 | imports: [ |
21 | // TagInputModule, | ||
22 | |||
19 | VideosRoutingModule, | 23 | VideosRoutingModule, |
20 | SharedModule | 24 | SharedModule |
21 | ], | 25 | ], |