feat: #8408 flags' quick assignment

v1.18.x
Julian Lam 5 years ago
parent d5578c9906
commit d5af976915

@ -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,

Loading…
Cancel
Save