• Robert Knight's avatar
    Eliminate `vm.action` flag in AnnotationController · 201e8dd0
    Robert Knight authored
    Instead of maintaining a state flag indicating whether an annotation is
    being viewed, edited or created, derive that state from whether the
    annotation has an ID and whether it has an unsaved draft or not.
    
    In the process this commit simplifies the tests for reverting edits and
    adds a missing test that the annotation is deleted if new when clicking
    the Cancel button.
    201e8dd0
Name
Last commit
Last update
.github Loading commit data...
h Loading commit data...
images Loading commit data...
scripts Loading commit data...
.gitignore Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
.npmignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...