WIP: password directive
This commit is contained in:
parent
abf552aa5c
commit
2021ea979c
2 changed files with 13 additions and 5 deletions
|
|
@ -250,10 +250,7 @@ angular.module('copayApp.directives')
|
|||
scope.$watch(attrs.ngModel, function(newValue, oldValue) {
|
||||
if (newValue && newValue !== '') {
|
||||
var info = evaluateMeter(newValue);
|
||||
element.css({
|
||||
'border-color': info.color
|
||||
});
|
||||
scope[attrs.checkStrength] = info.message;
|
||||
scope[attrs.checkStrength] = info;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue