UI: Attribute Service pass config on delete attributes

This commit is contained in:
Valerii Sosliuk 2020-08-14 20:30:49 +03:00
parent c6f037073b
commit 92a7ee9e7d

View File

@ -228,7 +228,7 @@ function AttributeService($http, $q, $filter, types, telemetryWebsocketService)
} }
var deleteEntityAttributesPromise; var deleteEntityAttributesPromise;
if (deleteAttributes.length) { if (deleteAttributes.length) {
deleteEntityAttributesPromise = deleteEntityAttributes(entityType, entityId, attributeScope, deleteAttributes); deleteEntityAttributesPromise = deleteEntityAttributes(entityType, entityId, attributeScope, deleteAttributes, config);
} }
if (Object.keys(attributesData).length) { if (Object.keys(attributesData).length) {
var url = '/api/plugins/telemetry/' + entityType + '/' + entityId + '/' + attributeScope; var url = '/api/plugins/telemetry/' + entityType + '/' + entityId + '/' + attributeScope;