client/src/actions/syncActions.js
author ymh <ymh.work@gmail.com>
Mon, 26 Nov 2018 13:57:30 +0100
changeset 178 89d8432aad9f
parent 130 78246db1cbac
permissions -rw-r--r--
Add a IRINOTES_CONFIG_BASE to allow giving a config file location

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
  }
}