Added alert dialog. Fixed image rotation EXIT data being discarded.

This commit is contained in:
DebaucheryLibrarian
2021-04-04 21:52:19 +02:00
parent 837fc98ad2
commit da0cbced15
43 changed files with 1134 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
import { graphql } from '../api';
import { graphql, post, del } from '../api';
import { releaseFields } from '../fragments';
import { curateUser } from '../curate';
@@ -66,8 +66,18 @@ function initUsersActions(store, _router) {
return curateUser(user);
}
async function addAlert(context, alert) {
return post('/alerts', alert);
}
async function removeAlert(context, alertId) {
return del(`/alerts/${alertId}`);
}
return {
addAlert,
fetchUser,
removeAlert,
};
}