From 5385ee352a387fa1985611251019378eaba809d2 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Mon, 3 Aug 2015 01:01:34 +0300 Subject: [PATCH] Tasks Might be done --- templates/js/controllers/taskController.js | 1 + templates/js/controllers/tasksController.js | 4 ++++ templates/views/tasks.html | 8 ++++++++ 3 files changed, 13 insertions(+) diff --git a/templates/js/controllers/taskController.js b/templates/js/controllers/taskController.js index 1179bdf..3304eab 100644 --- a/templates/js/controllers/taskController.js +++ b/templates/js/controllers/taskController.js @@ -138,6 +138,7 @@ angular.module('SeHub') .ok('No Problem!') .targetEvent(event) ); + console.error(err); }) } diff --git a/templates/js/controllers/tasksController.js b/templates/js/controllers/tasksController.js index 115ba12..2da7424 100644 --- a/templates/js/controllers/tasksController.js +++ b/templates/js/controllers/tasksController.js @@ -54,6 +54,10 @@ angular.module('SeHub') } } + $scope.createNewTask = function(){ + $location.path('/tasks/new'); + } + function DialogController($scope, $mdDialog, data, apiService) { $scope.task = data.task; diff --git a/templates/views/tasks.html b/templates/views/tasks.html index 3641064..d72f832 100644 --- a/templates/views/tasks.html +++ b/templates/views/tasks.html @@ -101,6 +101,14 @@ +
+ + + Create New Task + + + +
\ No newline at end of file