Wallet/src/js/controllers/preferencesAbout.js

34 lines
1.5 KiB
JavaScript
Raw Normal View History

2015-04-25 12:37:04 -03:00
'use strict';
angular.module('copayApp.controllers').controller('preferencesAbout',
function($scope, $window, appConfigService, gettextCatalog, externalLinkService, $ionicNavBarDelegate) {
2016-09-02 14:04:19 -03:00
2016-12-27 15:19:53 -03:00
$scope.title = gettextCatalog.getString('About') + ' ' + appConfigService.nameCase;
2018-05-25 18:15:02 +09:00
$scope.version = $window.fullVersion;
2016-12-13 16:38:02 -03:00
$scope.commitHash = $window.commitHash;
2016-09-05 14:59:11 -03:00
2016-12-12 17:29:11 -03:00
$scope.openExternalLink = function() {
2017-06-18 19:08:30 +09:00
var url = 'https://github.com/bitcoin-com/wallet/tree/' + $window.commitHash + '';
2016-12-12 17:29:11 -03:00
var optIn = true;
var title = gettextCatalog.getString('Open GitHub Project');
var message = gettextCatalog.getString('You can see the latest developments and contribute to this open source app by visiting our project on GitHub.');
var okText = gettextCatalog.getString('Open GitHub');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
2016-09-05 14:59:11 -03:00
};
2017-06-18 19:54:38 +09:00
$scope.openExternalLink2 = function() {
var url = 'https://github.com/bitpay/copay';
var optIn = true;
var title = gettextCatalog.getString('Open GitHub Project');
var message = gettextCatalog.getString('This will take you to the original Github project for Copay.');
var okText = gettextCatalog.getString('Open GitHub');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
};
$scope.$on("$ionicView.enter", function(event, data) {
$ionicNavBarDelegate.showBar(true);
});
2016-08-29 16:48:15 -03:00
});