mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
feat: #8408 flags' quick assignment
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
"view-profile": "View Profile",
|
"view-profile": "View Profile",
|
||||||
"start-new-chat": "Start New Chat",
|
"start-new-chat": "Start New Chat",
|
||||||
"go-to-target": "View Flag Target",
|
"go-to-target": "View Flag Target",
|
||||||
|
"assign-to-me": "Assign To Me",
|
||||||
"delete-post": "Delete Post",
|
"delete-post": "Delete Post",
|
||||||
"purge-post": "Purge Post",
|
"purge-post": "Purge Post",
|
||||||
"restore-post": "Restore 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');
|
var uid = $(this).parents('[data-uid]').attr('data-uid');
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
case 'assign':
|
||||||
|
$('#assignee').val(app.user.uid);
|
||||||
|
// falls through
|
||||||
|
|
||||||
case 'update':
|
case 'update':
|
||||||
socket.emit('flags.update', {
|
socket.emit('flags.update', {
|
||||||
flagId: ajaxify.data.flagId,
|
flagId: ajaxify.data.flagId,
|
||||||
|
|||||||
Reference in New Issue
Block a user