mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Merge pull request #78 from resin-io/77-set-download-progress-to-0
Set download_progress to 0 when beginning download
This commit is contained in:
commit
b674c2991e
@ -129,7 +129,7 @@ fetch = (app) ->
|
||||
docker.getImage(app.imageId).inspectAsync()
|
||||
.catch (error) ->
|
||||
logSystemEvent(logTypes.downloadApp, app)
|
||||
device.updateState(status: 'Downloading')
|
||||
device.updateState(status: 'Downloading', download_progress: 0)
|
||||
dockerUtils.fetchImageWithProgress app.imageId, (progress) ->
|
||||
device.updateState(download_progress: progress.percentage)
|
||||
.then ->
|
||||
|
Loading…
Reference in New Issue
Block a user