remove backbutton and adding finish button on complete view

This commit is contained in:
Gabriel Bazán 2017-01-25 10:41:32 -03:00
commit cda0361999
3 changed files with 6 additions and 9 deletions

View file

@ -54,6 +54,7 @@ angular.module('copayApp.controllers').controller('completeController', function
if (!$scope.fromSettings) { if (!$scope.fromSettings) {
$ionicConfig.views.swipeBackEnabled(false); $ionicConfig.views.swipeBackEnabled(false);
$ionicNavBarDelegate.showBackButton(false);
} else { } else {
$ionicNavBarDelegate.showBackButton(true); $ionicNavBarDelegate.showBackButton(true);
$ionicConfig.views.swipeBackEnabled(true); $ionicConfig.views.swipeBackEnabled(true);

View file

@ -1,13 +1,5 @@
#complete { #complete {
background-color: #fff; background-color: #fff;
.close-button {
color: $dark-gray;
position: absolute;
top: 5px;
right: 10px;
padding: 15px;
font-size: 36px;
}
.complete-layout { .complete-layout {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -3,9 +3,13 @@
<ion-nav-back-button> <ion-nav-back-button>
</ion-nav-back-button> </ion-nav-back-button>
<ion-nav-title>{{'Share BitPay' | translate}}</ion-nav-title> <ion-nav-title>{{'Share BitPay' | translate}}</ion-nav-title>
<ion-nav-buttons side="secondary">
<button ng-show="!fromSettings" class="button no-border" ng-click="close()" translate>
Finish
</button>
</ion-nav-buttons>
</ion-nav-bar> </ion-nav-bar>
<ion-content scroll="false" has-header="fromSettings"> <ion-content scroll="false" has-header="fromSettings">
<a class="close-button ng-hide" ng-show="!fromSettings" ng-click="close()"><i class="icon ion-ios-close-empty close-home-tip"></i></a>
<div class="complete-layout"> <div class="complete-layout">
<div class="complete-layout__expand" ng-class="{'fade-in': !animate || socialsharing}"> <div class="complete-layout__expand" ng-class="{'fade-in': !animate || socialsharing}">
<div ng-show="fromSettings"> <div ng-show="fromSettings">