ui(admin): add new node page

This commit is contained in:
Matthew Penner 2021-09-12 21:22:33 -06:00
parent 3c01dbbcc5
commit d0a78ec067
No known key found for this signature in database
GPG key ID: 030E4AB751DC756F
15 changed files with 362 additions and 176 deletions

View file

@ -14,9 +14,7 @@ export default (id: number, node: Partial<Node>, include: string[] = []): Promis
});
return new Promise((resolve, reject) => {
http.patch(`/api/application/nodes/${id}`, {
...data,
}, { params: { include: include.join(',') } })
http.patch(`/api/application/nodes/${id}`, data, { params: { include: include.join(',') } })
.then(({ data }) => resolve(rawDataToNode(data)))
.catch(reject);
});