Refresh page on delete error
This commit is contained in:
1 parent
aa55dcef8f
commit
b60c5a8c34
6 files changed
+9
No files matched your search
@@ -44,6 +44,7 @@ const component = {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(Date.now(), Date.now());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ function renderTable(
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ function renderTable(
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ function putActionHandler(action, object, isNew) {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Undefined action");
|
throw new Error("Undefined action");
|
||||||
@@ -301,6 +302,7 @@ function renderTable(
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ function putActionHandler(action, object, isNew) {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Undefined action");
|
throw new Error("Undefined action");
|
||||||
@@ -294,6 +295,7 @@ function renderTable(
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ function putActionHandler(action, object, isNew) {
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Undefined action");
|
throw new Error("Undefined action");
|
||||||
@@ -304,6 +305,7 @@ function renderTable(
|
|||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
notifications.push("error", err.message);
|
notifications.push("error", err.message);
|
||||||
|
store.fulfill(0, Date.now());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user