mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Added quick reply button (doesn't load in the correct parameters for
sending a msg)
This commit is contained in:
parent
19fb81aafd
commit
f16d9d609e
2 changed files with 5 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
|||
});
|
||||
}
|
||||
|
||||
$scope.quickReply = function(uuid) {
|
||||
$rootScope.openModal('private-message',{controller:'MemberModalCtrl', scope:$scope})
|
||||
}
|
||||
}
|
||||
])
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ mixin chatMessages(inbox)
|
|||
|
|
||||
a(ng-click='#{inbox? "user.ops.deletePM({params:{id:message.$key}})" : "deleteChatMessage(group, message)"}', ng-if='#{inbox ? "true" : ":: user.contributor.admin || message.uuid == user.id"}')
|
||||
span.glyphicon.glyphicon-trash(tooltip=env.t('delete'))
|
||||
a(ng-click="quickReply(message.uuid)")
|
||||
span.glyphicon.glyphicon-share-alt(tooltip=env.t('pm-reply'))
|
||||
span.float-label
|
||||
a.label.label-default.chat-message(ng-if=':: message.user', ng-class='::userLevelStyleFromLevel(message.contributor.level, message.backer.npc, style)', ng-click='clickMember(message.uuid, true)')
|
||||
span.glyphicon.glyphicon-arrow-right(ng-if='::message.sent')
|
||||
|
|
|
|||
Loading…
Reference in a new issue