Skip to content

Commit 23ab590

Browse files
committed
adds MISSING to file state list
1 parent ec3e5a6 commit 23ab590

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

src/const/FileStates.js

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
1+
const NONE = 'NONE';
2+
const OPEN = 'OPEN';
3+
const CLOSED = 'CLOSED';
4+
const UNKNOWN = 'UNKNOWN';
5+
const MISSING = 'MISSING';
6+
const LOST = 'LOST';
7+
const TO_APPEAR = 'TO_APPEAR';
8+
const TO_BE_DELETED = 'TO_BE_DELETED';
9+
const BEING_READ = 'BEING_READ';
10+
const ARCHIVED = 'ARCHIVED';
11+
const AWAITING_SYNC = 'AWAITING_SYNC';
12+
113
const FileStates = [
2-
'CLOSED',
3-
'OPEN',
4-
'NONE',
5-
'LOST',
6-
'TO_APPEAR',
7-
'TO_BE_DELETED',
8-
'BEING_READ',
9-
'ARCHIVED',
10-
'AWAITING_SYNC',
14+
CLOSED,
15+
OPEN,
16+
LOST,
17+
UNKNOWN,
18+
MISSING,
19+
NONE,
20+
TO_APPEAR,
21+
TO_BE_DELETED,
22+
BEING_READ,
23+
ARCHIVED,
24+
AWAITING_SYNC,
1125
];
1226

13-
export const ONLINE_STATES = ['CLOSED', 'ARCHIVED'];
27+
export const ONLINE_STATES = [CLOSED, ARCHIVED];
28+
29+
export const WARNING_STATES = [NONE, OPEN, BEING_READ, AWAITING_SYNC, TO_APPEAR];
1430

15-
export const WARNING_STATES = ['NONE', 'OPEN', 'BEING_READ', 'AWAITING_SYNC'];
31+
export const ERROR_STATES = [MISSING, LOST, TO_BE_DELETED, UNKNOWN];
1632

17-
export const DOWNLOAD_STATES = ['CLOSED', 'OPEN', 'BEING_READ'];
33+
export const DOWNLOAD_STATES = [CLOSED, OPEN, BEING_READ];
1834

1935
export default FileStates;

0 commit comments

Comments
 (0)