Refresh page on delete error

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent aa55dcef8f
commit b60c5a8c34
6 files changed
+9

No files matched your search

+1
View File
@@ -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());
}); });
} }
}, },
+1
View File
@@ -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());
}); });
} }
}, },
+1
View File
@@ -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());
}); });
} }
}, },
+2
View File
@@ -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());
}); });
} }
}, },
+2
View File
@@ -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());
}); });
} }
}, },
+2
View File
@@ -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());
}); });
} }
}, },