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"
msgstr ""
#: public/views/disclaimer.html
msgid "Official English Disclaimer"
msgstr ""
#: public/views/backup.html
msgid "Once you have copy your wallet seed, it is recommended to delete it from this device."
msgstr ""

View file

@ -28,6 +28,9 @@
<li translate>We reserve the right to modify this disclaimer from time to time.</li>
</ul>
</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">
<p translate>I affirm that I have read, understood, and agree with these terms.</p>

View file

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