hide wallet name if alias exists
This commit is contained in:
parent
67612e547c
commit
c8a27dabc1
2 changed files with 3 additions and 4 deletions
|
|
@ -17,8 +17,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$scope.alias = lodash.isEqual($scope.wallet.name, $scope.wallet.credentials.walletName) ? null : $scope.wallet.name + ' ';
|
$scope.walletName = $scope.wallet.name;
|
||||||
$scope.walletName = $scope.wallet.credentials.walletName;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.showDeletePopup = function() {
|
$scope.showDeletePopup = function() {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<button class="button button-standard button-assertive" ng-click="showDeletePopup()">
|
<button class="button button-standard button-assertive" ng-click="showDeletePopup()">
|
||||||
{{'Delete'|translate}} <span ng-show="alias">{{alias}}</span>{{walletName}}
|
{{'Delete'|translate}} {{walletName}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue