1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Display number of resources being fetched in side bar

This commit is contained in:
Laurent Cozic
2018-11-13 22:25:23 +00:00
parent 06091933e1
commit e17f3051f0
6 changed files with 45 additions and 3 deletions

View File

@ -38,7 +38,10 @@ const defaultState = {
itemIndex: 0,
itemCount: 0,
},
selectedNoteTags: []
selectedNoteTags: [],
resourceFetcher: {
toFetchCount: 0,
},
};
const stateUtils = {};
@ -604,6 +607,14 @@ const reducer = (state = defaultState, action) => {
newState.decryptionWorker = decryptionWorker;
break;
case 'RESOURCE_FETCHER_SET':
newState = Object.assign({}, state);
const rf = Object.assign({}, action);
delete rf.type;
newState.resourceFetcher = rf;
break;
case 'LOAD_CUSTOM_CSS':
newState = Object.assign({}, state);