mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Remove TODO
This commit is contained in:
parent
d5fa3a4e3a
commit
1db54174d4
@ -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' };
|
||||||
|
Loading…
Reference in New Issue
Block a user