[ISSUE #72]The batchResend and batchExport buttons are disabled when there is no dlq message (#73)

Co-authored-by: zhangjidi2016 <zhangjidi@cmss.chinamobile.com>
This commit is contained in:
zhangjidi2016
2022-02-10 15:09:59 +08:00
committed by GitHub
parent 6da21f480e
commit d2da9ca41f

View File

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