fix About

This commit is contained in:
Matias Alejo Garcia 2016-09-02 14:04:19 -03:00
commit 0ed46f1f65
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
2 changed files with 7 additions and 4 deletions

View file

@ -14,14 +14,14 @@
<i class="icon ion-ios-film-outline"></i> <i class="icon ion-ios-film-outline"></i>
<span translate>Version</span> <span translate>Version</span>
<span class="item-note"> <span class="item-note">
v{{v.version}} v{{version}}
</span> </span>
</div> </div>
<div class="item item-icon-left" ng-click="$root.openExternalLink('https://github.com/bitpay/copay/tree/'+v.commitHash)"> <div class="item item-icon-left" ng-click="$root.openExternalLink('https://github.com/bitpay/copay/tree/'+commitHash)">
<i class="icon ion-ios-film-outline"></i> <i class="icon ion-ios-film-outline"></i>
<span translate>Commit hash</span> <span translate>Commit hash</span>
<span class="item-note"> <span class="item-note">
#{{v.commitHash}} #{{commitHash}}
</span> </span>
</div> </div>
<div class="item item-divider"> <div class="item item-divider">

View file

@ -1,6 +1,9 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('preferencesAbout', angular.module('copayApp.controllers').controller('preferencesAbout',
function($ionicNavBarDelegate, gettextCatalog) { function($scope, $version, $ionicNavBarDelegate, gettextCatalog) {
$ionicNavBarDelegate.title(gettextCatalog.getString('About Copay')); $ionicNavBarDelegate.title(gettextCatalog.getString('About Copay'));
$scope.version = $window.version;
$scope.commit = $window.commitHash;
}); });