mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Added confirmation before deleting messages and moved buttons to top of Inbox. (fixes #4848)
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