| changeset 134 | be36eed5e6e0 |
| child 168 | ea92f4fe783d |
| 133:6f3078f7fd47 | 134:be36eed5e6e0 |
|---|---|
1 // selectors linked to syncronization status |
|
2 import { ActionEnum } from '../constants'; |
|
3 |
|
4 export const getLastSync = state => state.getIn(['authStatus', 'lastSync']) || 0 |
|
5 |
|
6 export const isSynchronizing = state => state.getIn(['status', 'isSynchronizing']) |
|
7 |
|
8 export const isSynchronized = state => |
|
9 state.get('notes').every((n) => n.get('action')===ActionEnum.NONE) && |
|
10 state.get('sessions').every((n) => n.get('action')===ActionEnum.NONE) |