Remove TODO

This commit is contained in:
jendib 2013-09-05 00:50:23 +02:00
parent d5fa3a4e3a
commit 1db54174d4

View File

@ -38,7 +38,6 @@ App.controller('Tag', function($scope, $dialog, $state, Tag, Restangular) {
* Add a tag. * Add a tag.
*/ */
$scope.addTag = function() { $scope.addTag = function() {
// TODO Check if the tag don't already exists
Restangular.one('tag').put($scope.tag).then(function(data) { Restangular.one('tag').put($scope.tag).then(function(data) {
$scope.tags.push({ id: data.id, name: $scope.tag.name, color: $scope.tag.color }); $scope.tags.push({ id: data.id, name: $scope.tag.name, color: $scope.tag.color });
$scope.tag = { name: '', color: '#3a87ad' }; $scope.tag = { name: '', color: '#3a87ad' };