ARTEMIS-3018 - Console dlq pref doesn work with multiple dlq's

https://issues.apache.org/jira/browse/ARTEMIS-3018
This commit is contained in:
Andy Taylor 2020-12-04 12:25:39 +00:00
parent 4843a09afe
commit 232c7b16aa
1 changed files with 4 additions and 4 deletions

View File

@ -194,8 +194,8 @@ var Artemis;
Artemis.log.debug("loading table" + artemisExpiryQueue);
if (objName) {
ctrl.dlq = false;
var queueName = jolokia.getAttribute(objName, "Name");
if (queueName == artemisDLQ || queueName == artemisExpiryQueue) {
var addressName = jolokia.getAttribute(objName, "Address");
if (addressName == artemisDLQ || addressName == artemisExpiryQueue) {
ctrl.dlq = true;
}
}
@ -682,11 +682,11 @@ var Artemis;
}
if (objName) {
ctrl.dlq = false;
var queueName = jolokia.getAttribute(objName, "Name");
var addressName = jolokia.getAttribute(objName, "Address");
var artemisDLQ = localStorage['artemisDLQ'] || "DLQ";
var artemisExpiryQueue = localStorage['artemisExpiryQueue'] || "ExpiryQueue";
Artemis.log.debug("loading table" + artemisExpiryQueue);
if (queueName == artemisDLQ || queueName == artemisExpiryQueue) {
if (addressName == artemisDLQ || addressName == artemisExpiryQueue) {
onDlq(true);
} else {
onDlq(false);