From 6e07c3de88791a0b342e0cc319590048117f9c2d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Mar 2017 21:15:55 +0100 Subject: Add video category support --- .../app/videos/video-add/video-add.component.html | 12 ++++++++++++ .../src/app/videos/video-add/video-add.component.ts | 20 ++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) (limited to 'client/src/app/videos/video-add') diff --git a/client/src/app/videos/video-add/video-add.component.html b/client/src/app/videos/video-add/video-add.component.html index b6be0d782..c6692b21d 100644 --- a/client/src/app/videos/video-add/video-add.component.html +++ b/client/src/app/videos/video-add/video-add.component.html @@ -14,6 +14,18 @@ +
+ + + +
+ {{ formErrors.category }} +
+
+
(press enter to add the tag) { const name = this.form.value['name']; + const category = this.form.value['category']; const description = this.form.value['description']; form.append('name', name); + form.append('category', category); form.append('description', description); for (let i = 0; i < this.tags.length; i++) { -- cgit v1.2.3