add cancel button

This commit is contained in:
Marty Alcala 2016-10-14 15:54:20 -04:00
parent a6891ac900
commit 6e87f18ec8
3 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,9 @@ angular.module('copayApp.directives')
$timeout(function() {
scope.showMenu = true;
}, 2000);
scope.hide = function() {
scope.showMenu = false;
};
scope.$watch('showMenu', function() {
console.log('scope.showMenu', scope.showMenu);
if(!scope.showMenu) {

View File

@ -41,6 +41,11 @@ incoming-data-menu {
align-items: center;
justify-content: center;
color: #3A3A3A;
border-top: 1px solid #e4e4e4;
&:active {
background: #dadada;
}
}
&__url {
background: rgba(203, 203, 203, .13);

View File

@ -16,7 +16,7 @@
<div>Open website</div>
<i class="icon bp-arrow-right"></i>
</a>
<a class="incoming-data-menu__cancel item">
<a class="incoming-data-menu__cancel item" ng-click="hide()">
Cancel
</a>
</action-sheet>