added: notes and todos for keepRight

This commit is contained in:
Thomas Hervey
2018-11-18 19:31:10 -08:00
committed by Bryan Housel
parent ee00635cc4
commit cedf6955b5
4 changed files with 314 additions and 196 deletions

View File

@@ -289,7 +289,8 @@ export function uiKeepRightEditor(context) {
this.blur(); // avoid keeping focus on the button - #4641
var keepRight = services.keepRight;
if (keepRight) {
d.state = 'ignore_t';
d.state = d.state === 'ignore_t' ? '' : 'ignore_t';
keepRight.postKeepRightUpdate(d, function(err, error) {
dispatch.call('change', error);
});
@@ -306,7 +307,7 @@ export function uiKeepRightEditor(context) {
this.blur(); // avoid keeping focus on the button - #4641
var keepRight = services.keepRight;
if (keepRight) {
d.state = 'ignore';
d.state = d.state === 'ignore' ? '' : 'ignore';
keepRight.postKeepRightUpdate(d, function(err, error) {
dispatch.call('change', error);
});