add cancel button
This commit is contained in:
parent
a6891ac900
commit
6e87f18ec8
3 changed files with 9 additions and 1 deletions
|
|
@ -16,6 +16,9 @@ angular.module('copayApp.directives')
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
scope.showMenu = true;
|
scope.showMenu = true;
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
scope.hide = function() {
|
||||||
|
scope.showMenu = false;
|
||||||
|
};
|
||||||
scope.$watch('showMenu', function() {
|
scope.$watch('showMenu', function() {
|
||||||
console.log('scope.showMenu', scope.showMenu);
|
console.log('scope.showMenu', scope.showMenu);
|
||||||
if(!scope.showMenu) {
|
if(!scope.showMenu) {
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,11 @@ incoming-data-menu {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: #3A3A3A;
|
color: #3A3A3A;
|
||||||
|
border-top: 1px solid #e4e4e4;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: #dadada;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&__url {
|
&__url {
|
||||||
background: rgba(203, 203, 203, .13);
|
background: rgba(203, 203, 203, .13);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<div>Open website</div>
|
<div>Open website</div>
|
||||||
<i class="icon bp-arrow-right"></i>
|
<i class="icon bp-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
<a class="incoming-data-menu__cancel item">
|
<a class="incoming-data-menu__cancel item" ng-click="hide()">
|
||||||
Cancel
|
Cancel
|
||||||
</a>
|
</a>
|
||||||
</action-sheet>
|
</action-sheet>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue