mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Updates new tag code and test spec for new tags.
This commit is contained in:
@@ -4,7 +4,6 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User', 'Shared',
|
||||
function($scope, $rootScope, User, Shared) {
|
||||
var user = User.user;
|
||||
$scope._editing = false;
|
||||
$scope._newTag = {name:''};
|
||||
|
||||
var tagsSnap; // used to compare which tags need updating
|
||||
|
||||
@@ -30,8 +29,8 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User', 'Shared',
|
||||
// User.save();
|
||||
};
|
||||
|
||||
$scope.createTag = function(newTag) {
|
||||
User.user.ops.addTag({body:{name:newTag.name, id:Shared.uuid()}});
|
||||
$scope._newTag.name = '';
|
||||
$scope.createTag = function() {
|
||||
User.user.ops.addTag({body:{name:$scope._newTag.name, id:Shared.uuid()}});
|
||||
$scope._newTag = '';
|
||||
};
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user