This is an automated email from the ASF dual-hosted git repository.

brusdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git


The following commit(s) were added to refs/heads/main by this push:
     new c9a9e35  ARTEMIS-5660 - fix status page refresh
c9a9e35 is described below

commit c9a9e3559ec4ee6425d0c31ad7f18b985fbebac6
Author: Andy Taylor <[email protected]>
AuthorDate: Tue Sep 16 11:29:46 2025 +0100

    ARTEMIS-5660 - fix status page refresh
---
 .../packages/artemis-console-plugin/src/artemis-service.ts        | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
index b5e5d9f..cef014b 100644
--- 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
+++ 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
@@ -155,11 +155,9 @@ const typeLabels = ["DEFAULT", "1", "object", "text", 
"bytes", "map", "stream",
 class ArtemisService {
 
     private brokerObjectName: Promise<string>
-    private brokerInfo: Promise<BrokerInfo | null>
 
     constructor() {
         this.brokerObjectName = Promise.resolve("")
-        this.brokerInfo = Promise.resolve(null)
     }
 
     /**
@@ -168,7 +166,6 @@ class ArtemisService {
      */
     initialize() {
         this.brokerObjectName = this.initBrokerObjectName();
-        this.brokerInfo = this.initBrokerInfo();
     }
 
     private async initBrokerObjectName(): Promise<string> {
@@ -177,7 +174,7 @@ class ArtemisService {
         return search && search[0] ? search[0] : "";
     }
 
-    async initBrokerInfo(): Promise<BrokerInfo | null> {
+    async getBrokerInfo(): Promise<BrokerInfo | null> {
         return new Promise<BrokerInfo | null>(async (resolve, reject) => {
             var brokerObjectName = await this.brokerObjectName;
             if ("" === brokerObjectName) {
@@ -220,9 +217,6 @@ class ArtemisService {
         });
     }
 
-    async getBrokerInfo(): Promise<BrokerInfo | null> {
-        return await this.brokerInfo;
-    }
 
     async createBrokerTopology(maxAddresses: number, addressFilter: string): 
Promise<BrokerTopology> {
         return new Promise<BrokerTopology>(async (resolve, reject) => {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to