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

make undo and redo buttons work #109

Merged
merged 10 commits into from
Apr 16, 2016
Merged

make undo and redo buttons work #109

merged 10 commits into from
Apr 16, 2016

Conversation

thatkookooguy
Copy link
Member

@thatkookooguy thatkookooguy commented Apr 13, 2016

Change Summary

More info

Later, this will be inside the stateService object, which will save the current state (and won't be saved to the server like the settingsService should)

  • did you link this PR to an issue?
  • did you lint your changes to both javascript and scss?
  • "I'm pretty sure I'll be able to read and understand this PR, even if I wasn't the author." - _said the PR author_

BASE DEMO: https://kibibit-demo.herokuapp.com/
MODIFIED DEMO: https://kibibit-demo-pr-109.herokuapp.com/


This change is Reviewable

Now, the undo and redo buttons should work with the ace editor
};

vm.hasRedo = function() {
if (vm.settings.currentUndoManager && vm.settings.currentUndoManager.hasRedo) {

Choose a reason for hiding this comment

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

Line must be at most 80 characters

@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 13, 2016 17:54 Active
@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 13, 2016 18:22 Active
+ make cut and copy work, even though we might remove those buttons later completely, since `paste` can't work on web (Solution?)
@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 15, 2016 11:24 Active
vm.cutSelection = function(e) {
vm.settings.currentEditor.session.replace(vm.settings.currentEditor.selection.getRange(), '');
vm.settings.currentEditor.focus();
}

Choose a reason for hiding this comment

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

Missing semicolon after statement

good boy, hound!
@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 15, 2016 11:26 Active
}
};

vm.cutSelection = function(e) {

Choose a reason for hiding this comment

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

Expected indentation of 2 characters

@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 15, 2016 11:27 Active
@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 15, 2016 11:28 Active
"velocity": "~1.2.3"
"velocity": "~1.2.3",
"ngclipboard": "~1.1.1",
"ng-device-detector": "~3.0.1"
Copy link
Member Author

Choose a reason for hiding this comment

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

I left this here even though I didn't use it, since we'll need this for MixPanel

@ortichon
Copy link
Member

what about the [still need to open a bug for this!] comments? ;-)

@thatkookooguy
Copy link
Member Author

thatkookooguy commented Apr 15, 2016

@ortichon , that's because it was added later since you took your time with the code-review... 😝

This CL originally didn't include those two changes but I finished them before you started the code review

@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 15, 2016 16:53 Active
@thatkookooguy thatkookooguy deployed to kibibit-demo-pr-109 April 16, 2016 21:58 Active
@ortichon
Copy link
Member

LGTM

Approved with PullApprove

@ortichon ortichon merged commit 770a057 into master Apr 16, 2016
@ortichon ortichon deleted the make-undo-redo-work branch April 16, 2016 23:40
neilkalman-redkix pushed a commit that referenced this pull request Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants