Commit 27ce145a authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed reload

parent 068ca7c0
......@@ -44,8 +44,8 @@ export default class {
* @returns {AxiosPromise} An ES6 promise.
async reloadData ({taskID}) {
const dataItem = => d.task_id === taskID)
const descriptors = [dataItem.descriptor]
const metaData = await this.getMetaData({taskID})
const descriptors = [['descriptor']]
await this.deleteData({taskID})
return this.createData({descriptors})
......@@ -58,6 +58,15 @@ export default class {
return this._axios.get('/data')
* Submits a GET request that will return meta information for the data associated with the given task id.
* @param data task id to get meta information for.
* @returns {AxiosPromise} An ES6 promise.
getMetaData ({taskID}) {
return this._axios.get(`/data/meta/${taskID}?wait=1`)
* Submits a DELETE request that will remove data from the back end if the current session has access to it.
* @param taskID The id of the data to be removed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment