mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
feat: #8408 flags' quick assignment
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
"view-profile": "View Profile",
|
||||
"start-new-chat": "Start New Chat",
|
||||
"go-to-target": "View Flag Target",
|
||||
"assign-to-me": "Assign To Me",
|
||||
"delete-post": "Delete Post",
|
||||
"purge-post": "Purge Post",
|
||||
"restore-post": "Restore Post",
|
||||
|
||||
@@ -13,6 +13,10 @@ define('forum/flags/detail', ['forum/flags/list', 'components', 'translator', 'b
|
||||
var uid = $(this).parents('[data-uid]').attr('data-uid');
|
||||
|
||||
switch (action) {
|
||||
case 'assign':
|
||||
$('#assignee').val(app.user.uid);
|
||||
// falls through
|
||||
|
||||
case 'update':
|
||||
socket.emit('flags.update', {
|
||||
flagId: ajaxify.data.flagId,
|
||||
|
||||
Reference in New Issue
Block a user