diff --git a/CHANGELOG.md b/CHANGELOG.md index ba7420806d..e46b547d10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -### Version 0.35.5 -#### Fix +### Version 0.36.0 +#### Feature +- allow resume upload if upload job had stopped - dbl_dot_local_app(5/7/2019): auto link upload job ### Version 0.35.4 diff --git a/app/components/DBLEntryRow.js b/app/components/DBLEntryRow.js index b1ff52077f..7690f4ca84 100644 --- a/app/components/DBLEntryRow.js +++ b/app/components/DBLEntryRow.js @@ -58,7 +58,6 @@ type Props = { bundleMatches: {}, bundlesSaveTo: {}, progress?: ?number, - isDownloaded: ?boolean, isUploading?: ?boolean, isDownloading?: ?boolean, isSelected: ?boolean, diff --git a/app/package-lock.json b/app/package-lock.json index 9009cc8586..6e0f539069 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,5 +1,5 @@ { "name": "nathanael", - "version": "0.35.5", + "version": "0.36.0", "lockfileVersion": 1 } diff --git a/app/package.json b/app/package.json index 4f7a8867b8..3960133147 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "nathanael", "productName": "nathanael", - "version": "0.35.5", + "version": "0.36.0", "description": "Electron frontend to DBL dot Local", "main": "./main.prod.js", "author": { diff --git a/app/reducers/bundles.reducer.js b/app/reducers/bundles.reducer.js index 1e71afdfea..42f4b96ef9 100644 --- a/app/reducers/bundles.reducer.js +++ b/app/reducers/bundles.reducer.js @@ -361,9 +361,7 @@ export function bundles(state = initialState, action) { export default bundles; function addBundleDecorators(bundle, addCustomDecoration) { - const isDownloaded = bundle.task === 'DOWNLOAD' && bundle.status === 'COMPLETED'; - const isUploaded = bundle.task === 'UPLOAD' && bundle.status === 'COMPLETED'; - const coreDecorated = { ...bundle, ...formatDisplayAs(bundle), isDownloaded, isUploaded }; + const coreDecorated = { ...bundle, ...formatDisplayAs(bundle) }; if (!addCustomDecoration) { return coreDecorated; } @@ -405,11 +403,8 @@ function formatStatus(bundle) { const stored = (bundle.resourceCountStored === bundle.resourceCountManifest) ? bundle.resourceCountManifest : `${bundle.resourceCountStored}/${bundle.resourceCountManifest || '...'}`; let newStatusDisplayAs; - if (bundle.isUploading) { - const uploadingMessage = (!bundle.resourceCountStored || bundle.resourceCountStored === 0) ? 'metadata' : formattedProgress; - newStatusDisplayAs = `Uploading ${uploadingMessage}`; - } else if (bundle.task === 'UPLOAD' && bundle.status === 'IN_PROGRESS') { - newStatusDisplayAs = 'Uploading'; + if (bundle.task === 'UPLOAD' && bundle.status === 'IN_PROGRESS') { + newStatusDisplayAs = `Uploading ${formattedProgress}`; } else if (bundle.status === 'NOT_STARTED') { newStatusDisplayAs = 'Download'; } else if (bundle.task === 'DOWNLOAD' && bundle.status === 'IN_PROGRESS') { diff --git a/app/services/bundle.service.js b/app/services/bundle.service.js index 72cd7b8d4d..c2e8b63de2 100644 --- a/app/services/bundle.service.js +++ b/app/services/bundle.service.js @@ -502,7 +502,7 @@ function checkAllFields(bundleId) { } function startUploadBundle(bundleId) { - return bundleAddTasks(bundleId, 'true'); + return bundleAddTasks(bundleId, 'true'); } function deleteForm(bundleId, formKey) { diff --git a/package-lock.json b/package-lock.json index d5cb4a5099..6d6c36d80d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nathanael", - "version": "0.35.5", + "version": "0.36.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 15cb82740c..ab14bf0a0d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nathanael", "productName": "nathanael", - "version": "0.35.5", + "version": "0.36.0", "description": "Electron frontend to DBL dot Local", "scripts": { "build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",