Add highlight on QR change, add selected address below the QR

This commit is contained in:
Yemel Jardi 2014-06-11 17:49:14 -03:00
commit e5f798d5ed
3 changed files with 40 additions and 2 deletions

View file

@ -120,6 +120,17 @@ angular.module('copayApp.directives')
}
}
})
.directive('highlightOnChange', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
scope.$watch(attrs.highlightOnChange, function (newValue, oldValue) {
element.addClass('highlight');
setTimeout(function() { element.removeClass('highlight'); }, 500);
});
}
}
})
.directive('checkStrength', function() {
return {
replace: false,