Browse Source

Fixed the create connector message

pull/10295/head
Ivan Raznatovskyi 3 years ago
parent
commit
dacdf0f0a2
  1. 5
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts
  2. 2
      ui-ngx/src/assets/locale/locale.constant-en_US.json

5
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts

@ -261,8 +261,11 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie
tasks.push(this.attributeService.deleteEntityAttributes(this.device, scope, attributesToDelete)); tasks.push(this.attributeService.deleteEntityAttributes(this.device, scope, attributesToDelete));
} }
forkJoin(tasks).subscribe(_ => { forkJoin(tasks).subscribe(_ => {
this.showToast(!this.initialConnector
? this.translate.instant('gateway.connector-created')
: this.translate.instant('gateway.connector-updated')
);
this.initialConnector = value; this.initialConnector = value;
this.showToast('Update Successful');
this.updateData(true); this.updateData(true);
}); });
} }

2
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -2711,6 +2711,8 @@
"connectors-table-actions": "Actions", "connectors-table-actions": "Actions",
"connectors-table-key": "Key", "connectors-table-key": "Key",
"connectors-table-class": "Class", "connectors-table-class": "Class",
"connector-created": "Connector created.",
"connector-updated": "Connector updated.",
"rpc-command-send": "Send", "rpc-command-send": "Send",
"rpc-command-result": "Response", "rpc-command-result": "Response",
"rpc-command-edit-params": "Edit parameters", "rpc-command-edit-params": "Edit parameters",

Loading…
Cancel
Save