mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
port group websites
This commit is contained in:
@@ -15,6 +15,15 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
||||
group._editing = false;
|
||||
}
|
||||
|
||||
$scope.addWebsite = function(group){
|
||||
group.websites.push(group._newWebsite);
|
||||
group._newWebsite = '';
|
||||
}
|
||||
|
||||
$scope.removeWebsite = function(group, $index){
|
||||
group.websites.splice($index,1);
|
||||
}
|
||||
|
||||
// ------ Loading ------
|
||||
|
||||
$scope.groups = Groups.groups;
|
||||
|
||||
Reference in New Issue
Block a user