100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
UI updates: Remove obsolete console registration delay parameter (#3018)
Koen08699bb55330
diff --git a/ui/component/core/src/console.ts b/ui/component/core/src/console.tsindex 2b7f85290..eb459b047 100644--- a/ui/component/core/src/console.ts+++ b/ui/component/core/src/console.ts@@ -174,7 +174,7 @@ export class Console {// Get an ID for this console if it doesn't have oneif (!this._registration.id) {- await this.sendRegistration(0);+ await this.sendRegistration();}this._initialised = true;@@ -298,18 +298,13 @@ export class Console {return deferred.promise;}- // Uses a delayed mechanism to avoid excessive calls to the server during enabling providers- public sendRegistration(delay?: number): Promise<void> {+ public sendRegistration(): Promise<void> {if (this._registrationTimer) {window.clearTimeout(this._registrationTimer);this._registrationTimer = null;}- delay = delay !== undefined ? delay : 2000;-- console.debug("Sending registration in: " + delay + "ms");-return new Promise((resolve, reject) => {this._registrationTimer = window.setTimeout(async () => {this._registrationTimer = null;@@ -322,7 +317,7 @@ export class Console {console.error("Failed to register console", e);reject(e);}- }, delay);+ });});}