Browse Source
Merge pull request #10295 from iraznatovskyi/fix-connector-toast-message
Fixed the create connector message
pull/10713/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts
-
ui-ngx/src/assets/locale/locale.constant-en_US.json
|
|
|
@ -262,8 +262,11 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie |
|
|
|
tasks.push(this.attributeService.deleteEntityAttributes(this.device, scope, attributesToDelete)); |
|
|
|
} |
|
|
|
forkJoin(tasks).subscribe(_ => { |
|
|
|
this.showToast(!this.initialConnector |
|
|
|
? this.translate.instant('gateway.connector-created') |
|
|
|
: this.translate.instant('gateway.connector-updated') |
|
|
|
); |
|
|
|
this.initialConnector = value; |
|
|
|
this.showToast('Update Successful'); |
|
|
|
this.updateData(true); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@ -2730,6 +2730,8 @@ |
|
|
|
"connectors-table-actions": "Actions", |
|
|
|
"connectors-table-key": "Key", |
|
|
|
"connectors-table-class": "Class", |
|
|
|
"connector-created": "Connector created.", |
|
|
|
"connector-updated": "Connector updated.", |
|
|
|
"rpc-command-save-template": "Save Template", |
|
|
|
"rpc-command-send": "Send", |
|
|
|
"rpc-command-result": "Response", |
|
|
|
|