client/src/actions/syncActions.js
author ymh <ymh.work@gmail.com>
Fri, 04 Aug 2017 09:48:09 +0200
changeset 138 a1fb2ced3049
parent 130 78246db1cbac
permissions -rw-r--r--
propagate annotations categories from session protocol definition

import * as types from '../constants/actionTypes';

export const updateLastSync = (timestamp) => {
  return {
    type: types.SYNC_SET_LAST_SYNC,
    value: timestamp
  }
}

export const endSynchronize = () => {
  return {
    type: types.SYNC_END_SYNC
  }
}

export const startSynchronize = () => {
  return {
    type: types.SYNC_START_SYNC
  }
}