mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Adjust PR #5389
* Convert $watch to ng-change and re-wrote test * Removed unnecessary styles * Use .form-control instead of class='form-control'
This commit is contained in:
@@ -31,11 +31,9 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User', 'Shared',
|
||||
// User.save();
|
||||
};
|
||||
|
||||
$scope.$watch('filterQuery', function (newValue, oldValue) {
|
||||
if (newValue !== oldValue) {
|
||||
user.filterQuery = newValue;
|
||||
}
|
||||
});
|
||||
$scope.updateTaskFilter = function(){
|
||||
user.filterQuery = $scope.filterQuery;
|
||||
};
|
||||
|
||||
$scope.createTag = function() {
|
||||
User.user.ops.addTag({body:{name:$scope._newTag.name, id:Shared.uuid()}});
|
||||
|
||||
Reference in New Issue
Block a user