refs #1457 Pass node ID to refreshData after client update
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
parent
7e174c9617
commit
3c1663aeb1
|
@ -603,19 +603,22 @@ export class GroupsComponent implements OnInit, OnDestroy {
|
||||||
this.syncingClientId = client.uuid;
|
this.syncingClientId = client.uuid;
|
||||||
this.syncStatus = true;
|
this.syncStatus = true;
|
||||||
|
|
||||||
|
const parentNodeId = client.organizationalUnit?.id || node.id;
|
||||||
|
console.log('Parent node id:', parentNodeId);
|
||||||
|
|
||||||
this.subscriptions.add(
|
this.subscriptions.add(
|
||||||
this.http.post(`${this.baseUrl}${client['@id']}/agent/status`, {}).subscribe(
|
this.http.post(`${this.baseUrl}${client['@id']}/agent/status`, {}).subscribe(
|
||||||
() => {
|
() => {
|
||||||
this.toastr.success('Cliente actualizado correctamente');
|
this.toastr.success('Cliente actualizado correctamente');
|
||||||
this.syncStatus = false;
|
this.syncStatus = false;
|
||||||
this.syncingClientId = null;
|
this.syncingClientId = null;
|
||||||
this.refreshData()
|
this.refreshData(parentNodeId)
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
this.toastr.error('Error de conexión con el cliente');
|
this.toastr.error('Error de conexión con el cliente');
|
||||||
this.syncStatus = false;
|
this.syncStatus = false;
|
||||||
this.syncingClientId = null;
|
this.syncingClientId = null;
|
||||||
this.refreshData()
|
this.refreshData(parentNodeId)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue