This is an automated email from the ASF dual-hosted git repository.
zhangjidi2016 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new d2da9ca [ISSUE #72]The batchResend and batchExport buttons are
disabled when there is no dlq message (#73)
d2da9ca is described below
commit d2da9ca41fde22b815e3480e81355d5c3bd63be9
Author: zhangjidi2016 <[email protected]>
AuthorDate: Thu Feb 10 15:09:59 2022 +0800
[ISSUE #72]The batchResend and batchExport buttons are disabled when there
is no dlq message (#73)
Co-authored-by: zhangjidi2016 <[email protected]>
---
src/main/resources/static/src/dlqMessage.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main/resources/static/src/dlqMessage.js
b/src/main/resources/static/src/dlqMessage.js
index 352e4cc..295201f 100644
--- a/src/main/resources/static/src/dlqMessage.js
+++ b/src/main/resources/static/src/dlqMessage.js
@@ -187,6 +187,9 @@ module.controller('dlqMessageController', ['$scope',
'ngDialog', '$http', 'Notif
$scope.selectedDlqMessage = [];
$scope.batchResendDlqMessage = function (consumerGroup) {
+ if ($("#batchResendBtn").hasClass("disabled")) {
+ return;
+ }
for (const message of $scope.messageCheckedList) {
const dlqMessage = {};
dlqMessage.topic = message.properties.RETRY_TOPIC;
@@ -219,6 +222,9 @@ module.controller('dlqMessageController', ['$scope',
'ngDialog', '$http', 'Notif
};
$scope.batchExportDlqMessage = function (consumerGroup) {
+ if ($("#batchExportBtn").hasClass("disabled")) {
+ return;
+ }
for (const message of $scope.messageCheckedList) {
const dlqMessage = {};
dlqMessage.msgId = message.msgId;