Merge pull request #1102 from yemel/fix/ui-issues

Fix/ui issues
This commit is contained in:
Matias Alejo Garcia 2014-08-15 16:30:40 -04:00
commit 6b0782f3a0
8 changed files with 22 additions and 7 deletions

View File

@ -925,6 +925,18 @@ button, .button, p {
margin-left: 0;
}
.addresses .list-addr i {
position: absolute;
top: -25px;
left: 6px;
cursor: pointer;
}
.addresses .list-addr contact {
margin-left: 42px;
cursor: text;
}
.pointer {
cursor: pointer;
}

View File

@ -5,6 +5,7 @@ angular.module('copayApp.controllers').controller('JoinController',
controllerUtils.redirIfLogged();
$rootScope.fromSetup = false;
$scope.loading = false;
$scope.isMobile = !!window.cordova;
// QR code Scanner
var cameraInput;

View File

@ -14,6 +14,7 @@ angular.module('copayApp.controllers').controller('OpenController',
$scope.wallets = walletFactory.getWallets().sort(cmp);
$scope.selectedWalletId = walletFactory.storage.getLastOpened() || ($scope.wallets[0] && $scope.wallets[0].id);
$scope.openPassword = '';
$scope.isMobile = !!window.cordova;
$scope.open = function(form) {
if (form && form.$invalid) {

View File

@ -40,6 +40,7 @@ angular.module('copayApp.controllers').controller('SetupController',
$rootScope.videoInfo = {};
$scope.loading = false;
$scope.walletPassword = $rootScope.walletPassword;
$scope.isMobile = !!window.cordova;
// ng-repeat defined number of times instead of repeating over array?
$scope.getNumber = function(num) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -10,9 +10,9 @@
<ul>
<li class="panel radius oh" ng-repeat="addr in addresses|removeEmpty|limitAddress:showAll">
<div class="large-8 small-6 column" ng-click="openAddressModal(addr)">
<div class="ellipsis">
<i class="fi-thumbnails">&nbsp;</i>
<div class="large-8 small-6 column">
<div class="ellipsis list-addr">
<i class="fi-thumbnails size-48" ng-click="openAddressModal(addr)">&nbsp;</i>
<span><contact address="{{addr.address}}" tooltip-popup-delay="500" tooltip tooltip-placement="right"/></span>
<small ng-if="addr.isChange">change</small>
</div>

View File

@ -8,7 +8,7 @@
<div class="large-8 columns line-dashed-setup-v">
<div class="box-setup oh">
<div ng-if="!$root.wallet.publicKeyRing.isComplete()">
<img ng-if="$root.fromSetup" class="right m15t" src="../img/step-3.svg" alt="Step 3">
<img ng-if="$root.fromSetup && !isMobile" class="right m15t" src="img/step-3.svg" alt="Step 3">
<h1 class="text-primary line-sidebar-b">Waiting copayers</h1>
<h3>Share this secret with your other copayers</h3>
<div class="panel">

View File

@ -12,8 +12,8 @@
</div>
<div class="large-8 columns line-dashed-setup-v">
<div class="box-setup oh">
<img ng-if="!isSetupWalletPage" class="right m15t" src="../img/step-1.svg" alt="Step 1">
<img ng-if="isSetupWalletPage" class="right m15t" src="../img/step-2.svg" alt="Step 2">
<img ng-if="!isSetupWalletPage && !isMobile" class="right m15t" src="img/step-1.svg" alt="Step 1">
<img ng-if="isSetupWalletPage && !isMobile" class="right m15t" src="img/step-2.svg" alt="Step 2">
<h1 class="text-secondary line-sidebar-b">Create new wallet</h1>
<label ng-show="!isSetupWalletPage">Wallet name
<input type="text" placeholder="Family vacation funds" class="form-control" ng-model="walletName">
@ -54,7 +54,7 @@
</div>
<div class="large-6 medium-6 columns">
<label>Select required signatures (*)
<select ng-model="requiredCopayers" ng-options="requiredCopayers as requiredCopayers for requiredCopayers in RCValues">
<select ng-model="requiredCopayers" ng-options="requiredCopayers as requiredCopayers for requiredCopayers in RCValues" ng-disabled="totalCopayers == 1">
</select>
</label>
</div>