enabled fix

This commit is contained in:
Kyle Spearrin 2017-06-27 08:23:00 -04:00
parent 3e61d938bc
commit be1cc945a2
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@
});
modal.result.then(function (enabled) {
provider.enabled = enabled;
if (enabled || enabled === false) {
// do not adjust when undefined or null
provider.enabled = enabled;
}
});
};