Merge pull request #665 from yemel/feature/highlight-qr-code
Add highlight on QR change, add selected address below the QR
This commit is contained in:
commit
bcbe97c15d
3 changed files with 40 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue