Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display downloaded content size in syllabus #580

Conversation

ivan-magda
Copy link
Member

Задача: #APPS-2552

Описание:
Добавили отображение размера скачанных файлов.

@ivan-magda ivan-magda added this to the 1.104 milestone Nov 28, 2019
@ivan-magda ivan-magda self-assigned this Nov 28, 2019
@ivan-magda ivan-magda marked this pull request as ready for review November 28, 2019 18:43
case .available(let isCached):
case .cached(let bytesTotal):
// TODO: Add label
print("bytesTotal = \(bytesTotal)")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget

@ivan-magda ivan-magda merged commit 29c5e97 into feature/course-info-syllabus-downloads-improvements Nov 28, 2019
@ivan-magda ivan-magda deleted the feature/syllabus-downloads-downloaded-content-size branch November 28, 2019 22:14
ivan-magda added a commit that referenced this pull request Dec 2, 2019
* Text steps as downloadable content (#577)

* Update all pods

* Return cached state for lessons without videos and with cached text steps

* Remove all kind of steps

* Display downloaded content size in syllabus (#580)

* Separate available(isCached:) download state into notCached and cached(bytesTotal:)

* Dispalay download size label

* Refactor rename

* Move megabytes in bytes formatting to helper

* Display label only on cached

* Create StorageUsageService

* Use StorageUsageService in downloaded courses module

* Provide actual sizes

* Display downloaded size in section

* Support cached state in syllabus header (#582)

* Update download all button title

* Add cached download state support for header view

* Handle remove cached course action

* Update syllabys header on download state changes

* Fix course download state

* Fix section download state not being updated on unit completion

* Update unit & section download state on completion

* Move units to pending state before being active
@ivan-magda ivan-magda mentioned this pull request Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant