Fixed the create connector message

This commit is contained in:
Ivan Raznatovskyi 2024-03-05 10:35:07 +02:00
parent 6b8af63c1e
commit dacdf0f0a2
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}); });
} }

View File

@ -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",