From 9bfe96e19f552a75eed790f8f3b68de11c9b7fef Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 May 2016 17:52:41 +0200 Subject: Put presentation logic in the components --- client/app/videos/video-add/video-add.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/app/videos/video-add') diff --git a/client/app/videos/video-add/video-add.component.ts b/client/app/videos/video-add/video-add.component.ts index b11475ae9..eb10aedeb 100644 --- a/client/app/videos/video-add/video-add.component.ts +++ b/client/app/videos/video-add/video-add.component.ts @@ -25,9 +25,9 @@ export class VideoAddComponent implements OnInit { private form: any; constructor( - private router: Router, + private authService: AuthService, private elementRef: ElementRef, - private authService: AuthService + private router: Router ) {} ngOnInit() { @@ -62,8 +62,8 @@ export class VideoAddComponent implements OnInit { } uploadFile() { - this.form.headers = this.authService.getRequestHeader().toJSON(); this.form.formData = jQuery(this.elementRef.nativeElement).find('form').serializeArray(); + this.form.headers = this.authService.getRequestHeader().toJSON(); this.form.submit(); } } -- cgit v1.2.3