fix refresh btn position
This commit is contained in:
parent
4693297405
commit
da5aa14487
3 changed files with 19 additions and 3 deletions
|
|
@ -16,6 +16,20 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
|||
controllerUtils.logout();
|
||||
};
|
||||
|
||||
$scope.refresh = function() {
|
||||
var w = $rootScope.wallet;
|
||||
if (!w) return;
|
||||
|
||||
if (w.isReady()) {
|
||||
w.sendWalletReady();
|
||||
if ($rootScope.addrInfos.length > 0) {
|
||||
controllerUtils.clearBalanceCache(w);
|
||||
controllerUtils.updateBalance(w, function() {
|
||||
$rootScope.$digest();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Ensures a graceful disconnect
|
||||
window.onbeforeunload = function() {
|
||||
|
|
|
|||
|
|
@ -19,4 +19,9 @@
|
|||
<div class="right">
|
||||
<a class="button tiny pri radius oh" href="#!/manage" title="Manage wallets"><i class="fi-plus"></i> {{'Manage wallets' | translate }}</a>
|
||||
</div>
|
||||
<div class="right m20r m5t">
|
||||
<a ng-click="refresh()" class="size-18 text-gray">
|
||||
<i class="fi-refresh right"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
<div class="oh m5t m10r">
|
||||
<div class="right size-10">[ {{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} ]</div>
|
||||
<div class="name-wallet">
|
||||
<a ng-click="refresh()">
|
||||
<i class="fi-refresh right"></i>
|
||||
</a>
|
||||
<div class="ellipsis">{{$root.wallet.getName()}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue