mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Merge pull request #4850 from stillsnowedin/develop
Added confirmation before deleting messages and moved buttons to top of ...
This commit is contained in:
@@ -33,6 +33,12 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
||||
group.$save();
|
||||
group._editing = false;
|
||||
}
|
||||
|
||||
$scope.deleteAllMessages = function() {
|
||||
if (confirm(window.env.t('confirmDeleteAllMessages'))) {
|
||||
User.user.ops.clearPMs({});
|
||||
}
|
||||
}
|
||||
|
||||
// ------ Modals ------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user