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 @@ +