forked from DebaucheryLibrarian/traxxx
Added alert dialog. Fixed image rotation EXIT data being discarded.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user