Upgrade to Mithril 2.0

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2019-07-13 01:42:33 -07:00
1 parent 3485bb8d1b
commit ae870c3155
6 files changed
+34 -26

No files matched your search

+8 -7
View File
@@ -104,13 +104,14 @@ function putActionHandler(action, _object): Promise<ValidationErrors> {
object
);
m.request({
method: "PUT",
headers: headers,
url: `/api/files/${encodeURIComponent(id)}`,
serialize: body => body, // Identity function to prevent JSON.parse on blob data
data: file
})
store
.xhrRequest({
method: "PUT",
headers: headers,
url: `/api/files/${encodeURIComponent(id)}`,
serialize: body => body, // Identity function to prevent JSON.parse on blob data
body: file
})
.then(() => {
notifications.push(
"success",