mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-18 09:52:20 +00:00
allow newly created tag to have the same UUID on client and server - fixes https://github.com/HabitRPG/habitrpg/issues/2856
This commit is contained in:
parent
72c6fd720a
commit
28505c139f
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User',
|
||||
function($scope, $rootScope, User) {
|
||||
habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User', 'Shared',
|
||||
function($scope, $rootScope, User, Shared) {
|
||||
var user = User.user;
|
||||
$scope._editing = false;
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User',
|
|||
};
|
||||
|
||||
$scope.createTag = function(name) {
|
||||
User.user.ops.addTag({body:{name:name}});
|
||||
User.user.ops.addTag({body:{name:name, id:Shared.uuid()}});
|
||||
$scope._newTag = '';
|
||||
};
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue