From d17e413642be9653835261ab7a58c283bf0b25ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 16 Dec 2021 21:16:34 -0500 Subject: [PATCH] feat: https://github.com/NodeBB/NodeBB/issues/9506 --- public/modules/quickreply.js | 10 +++++++++- templates/partials/menu.tpl | 13 +++++++++++-- templates/post-queue.tpl | 13 ++++++++++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/public/modules/quickreply.js b/public/modules/quickreply.js index 9daffc9..41e0dfc 100644 --- a/public/modules/quickreply.js +++ b/public/modules/quickreply.js @@ -48,7 +48,15 @@ define('persona/quickreply', [ return alerts.error(err); } if (data && data.queued) { - alerts.success(data.message); + alerts.alert({ + type: 'success', + title: '[[global:alert.success]]', + message: data.message, + timeout: 10000, + clickfn: function () { + ajaxify.go(`/post-queue#${data.id}`); + }, + }); } components.get('topic/quickreply/text').val(''); diff --git a/templates/partials/menu.tpl b/templates/partials/menu.tpl index 0c5b61d..ef29919 100644 --- a/templates/partials/menu.tpl +++ b/templates/partials/menu.tpl @@ -109,7 +109,7 @@ [[user:settings]] - + {{{ if showModMenu }}}
  • @@ -127,7 +127,16 @@ [[pages:ip-blacklist]]
  • - + {{{ else }}} + {{{ if postQueueEnabled }}} +
  • + + [[pages:post-queue]] + +
  • + {{{ end }}} + {{{ end }}} +
  • diff --git a/templates/post-queue.tpl b/templates/post-queue.tpl index 947510f..333e6b7 100644 --- a/templates/post-queue.tpl +++ b/templates/post-queue.tpl @@ -7,10 +7,12 @@
    {{{ if !posts.length }}} + {{{ if isAdmin }}}

    [[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]]

    {{{ end }}} + {{{ end }}} {{{ each posts }}}
    @@ -62,9 +64,14 @@