Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Add pause/resume. Closes #266. #291

Merged
merged 15 commits into from
Mar 9, 2017
Merged

Add pause/resume. Closes #266. #291

merged 15 commits into from
Mar 9, 2017

Conversation

juliangruber
Copy link
Collaborator

@Kriesse can you take over with some styling? I needed to turn the status hex icons into buttons, but this is how it looks with my changes:

screen shot 2017-03-03 at 15 31 59

@juliangruber juliangruber changed the title WIP Add pause/resume. Closes #266. Add pause/resume. Closes #266. Mar 4, 2017
@juliangruber
Copy link
Collaborator Author

This is ready for review now!

@Kriesse can you look over the hex icons and make sure everything is as you intended?

@juliangruber
Copy link
Collaborator Author

demo: https://youtu.be/xcOtZg-2rNU

@@ -22,6 +22,7 @@ module.exports = createModel

function createModel () {
let manager = null
let dbPaused = null
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

seems easier to use a separate db for this, than integrating into multidrive and multidat

function createManager (multidat, onupdate) {
assert.ok(multidat, 'models/repos: multidat should exist')
assert.ok(onupdate, 'models/repos: onupdate should exist')
function togglePause (state, data, send, done) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

needed to change indentation, so this looks messy. however i didn't change anything besides adding the togglePause method and reading from dbPaused

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

LGTM - tested and noticed that uploading doesn't always stop - issue here #293, don't think it should block this merge tho

@juliangruber juliangruber merged commit 0f3a79d into master Mar 9, 2017
@juliangruber juliangruber deleted the add/toggle-pause branch March 9, 2017 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants