refactor receive view
This commit is contained in:
parent
3bd9b4e8ec
commit
552a4c8bcf
11 changed files with 134 additions and 672 deletions
|
|
@ -11,8 +11,10 @@ angular.module('copayApp.directives')
|
|||
},
|
||||
link: function(scope, element, attrs) {
|
||||
scope.$watch('show', function() {
|
||||
if(scope.show) {
|
||||
$timeout(function() { scope.revealMenu = true; }, 100);
|
||||
if (scope.show) {
|
||||
$timeout(function() {
|
||||
scope.revealMenu = true;
|
||||
}, 100);
|
||||
} else {
|
||||
scope.revealMenu = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ angular.module('copayApp.directives')
|
|||
if (!data) return;
|
||||
|
||||
if (isCordova) {
|
||||
window.cordova.plugins.clipboard.copy(data);
|
||||
window.plugins.toast.showShortCenter(msg);
|
||||
window.plugins.socialsharing.share(data, null, null, null);
|
||||
} else if (isNW) {
|
||||
nodeWebkitService.writeToClipboard(data);
|
||||
scope.$apply(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue