Merge branch 'develop' of ssh://ognproject.evlt.uma.es:21987/opengnsys/oggui into develop
testing/ogGui-multibranch/pipeline/head This commit looks good Details

pull/16/head
Manuel Aranda Rosales 2025-02-07 12:02:45 +01:00
commit 112eb23195
1 changed files with 5 additions and 2 deletions

View File

@ -603,19 +603,22 @@ export class GroupsComponent implements OnInit, OnDestroy {
this.syncingClientId = client.uuid;
this.syncStatus = true;
const parentNodeId = client.organizationalUnit?.id || node.id;
console.log('Parent node id:', parentNodeId);
this.subscriptions.add(
this.http.post(`${this.baseUrl}${client['@id']}/agent/status`, {}).subscribe(
() => {
this.toastr.success('Cliente actualizado correctamente');
this.syncStatus = false;
this.syncingClientId = null;
this.refreshData()
this.refreshData(parentNodeId)
},
() => {
this.toastr.error('Error de conexión con el cliente');
this.syncStatus = false;
this.syncingClientId = null;
this.refreshData()
this.refreshData(parentNodeId)
}
)
);