--- a/client/src/actions/sessionsActions.js Mon Jun 26 16:50:16 2017 +0200
+++ b/client/src/actions/sessionsActions.js Mon Jun 26 17:40:28 2017 +0200
@@ -47,6 +47,23 @@
};
}
+export const deleteSession = (session) => {
+ return {
+ type: types.DELETE_SESSION,
+ session: session,
+ meta: {
+ offline: {
+ effect: {
+ url: `/api/notes/sessions/${session.get('_id')}/`,
+ method: 'DELETE',
+ },
+ commit: { type: types.NOOP },
+ rollback: { type: types.NOOP }
+ }
+ }
+ };
+}
+
export const loadSessions = () => {
return {
type: types.LOAD_SESSIONS