client/src/actions/syncActions.js
author salimr <riwad.salim@yahoo.fr>
Mon, 08 Oct 2018 03:24:47 +0200
changeset 159 a4705c2b4544
parent 130 78246db1cbac
permissions -rw-r--r--
Add send note options to the editor

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