2015-04-25 12:37:04 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
angular.module('copayApp.controllers').controller('preferencesAbout',
|
2016-12-27 15:19:53 -03:00
|
|
|
function($scope, $window, appConfigService, gettextCatalog, externalLinkService) {
|
2016-09-02 14:04:19 -03:00
|
|
|
|
2016-12-27 15:19:53 -03:00
|
|
|
$scope.title = gettextCatalog.getString('About') + ' ' + appConfigService.nameCase;
|
2016-12-27 17:05:02 -03:00
|
|
|
$scope.version = $window.version;
|
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() {
|
2016-12-27 15:19:53 -03:00
|
|
|
var url = 'https://github.com/bitpay/' + appConfigService.gitHubRepoName + '/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');
|
2016-10-12 15:29:06 -04:00
|
|
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
2016-09-05 14:59:11 -03:00
|
|
|
};
|
2016-08-29 16:48:15 -03:00
|
|
|
});
|