Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI updates: Removed autoclose for tunnels after reloading or closing the gateway widget (#1805)

Martin Peeters09467276403b
diff --git a/ui/component/or-dashboard-builder/src/widgets/gateway-widget.ts b/ui/component/or-dashboard-builder/src/widgets/gateway-widget.ts
index f78ea249e..3499cb925 100644
--- a/ui/component/or-dashboard-builder/src/widgets/gateway-widget.ts
+++ b/ui/component/or-dashboard-builder/src/widgets/gateway-widget.ts
@@ -97,20 +97,9 @@ export class GatewayWidget extends OrWidget {
}
disconnectedCallback() {
- if(this._activeTunnel) {
- if(this._startedByUser) {
- this._stopTunnel(this._activeTunnel).then(() => {
- console.warn("Stopped the active tunnel, as it was created through the widget.");
- });
- } else {
- console.warn("Keeping the active tunnel open, as it is not started through the widget.");
- }
- }
-
if (this._refreshTimer) {
clearTimeout(this._refreshTimer);
}
-
super.disconnectedCallback();
}