add original english disclaimer link

This commit is contained in:
dabura667 2015-09-18 01:03:22 +09:00
commit 6fa4fdffb5
3 changed files with 9 additions and 1 deletions

View file

@ -845,6 +845,10 @@ msgstr ""
msgid "Note" msgid "Note"
msgstr "" msgstr ""
#: public/views/disclaimer.html
msgid "Official English Disclaimer"
msgstr ""
#: public/views/backup.html #: public/views/backup.html
msgid "Once you have copy your wallet seed, it is recommended to delete it from this device." msgid "Once you have copy your wallet seed, it is recommended to delete it from this device."
msgstr "" msgstr ""

View file

@ -28,6 +28,9 @@
<li translate>We reserve the right to modify this disclaimer from time to time.</li> <li translate>We reserve the right to modify this disclaimer from time to time.</li>
</ul> </ul>
</p> </p>
<p ng-show="lang != 'en'">
<a class="center" ng-click="$root.openExternalLink('https://copay.io/disclaimer')" translate>Official English Disclaimer</a>
</p>
<div ng-show="!agreed"> <div ng-show="!agreed">
<p translate>I affirm that I have read, understood, and agree with these terms.</p> <p translate>I affirm that I have read, understood, and agree with these terms.</p>

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('disclaimerController', angular.module('copayApp.controllers').controller('disclaimerController',
function($scope, $timeout, storageService, applicationService, gettextCatalog, isCordova) { function($scope, $timeout, storageService, applicationService, gettextCatalog, isCordova, uxLanguage) {
$scope.agree = function() { $scope.agree = function() {
if (isCordova) { if (isCordova) {
@ -22,6 +22,7 @@ angular.module('copayApp.controllers').controller('disclaimerController',
$scope.init = function() { $scope.init = function() {
storageService.getCopayDisclaimerFlag(function(err, val) { storageService.getCopayDisclaimerFlag(function(err, val) {
$scope.lang = uxLanguage.currentLanguage;
$scope.agreed = val; $scope.agreed = val;
$timeout(function() { $timeout(function() {
$scope.$digest(); $scope.$digest();