email prefernce for notifications

This commit is contained in:
Matias Alejo Garcia 2015-05-14 17:21:19 -03:00
commit 00c730ccc3
3 changed files with 23 additions and 2 deletions

View file

@ -31,6 +31,16 @@
<span translate>Encrypt Private Key</span>
<switch id="network-name" name="encrypt" ng-model="encrypt" class="green right"></switch>
</li>
<li class="line-b p20" ng-click="$root.go('preferencesEmail')">
<span translate>email Notifications</span>
<span class="right text-gray">
<i class="icon-arrow-right3 size-24 right"></i>
<span ng-if="!index.preferences.email" translate>Disabled</span>
<span ng-if="index.preferences.email">{{index.preferences.email}}</span>
</span>
</li>
<h4 class="title m0">&nbsp;</h4>
<li class="line-b p20" ng-click="$root.go('backup')">

View file

@ -257,7 +257,18 @@ angular
}
})
.state('preferencesEmail', {
url: '/preferencesEmail',
templateUrl: 'views/preferencesEmail.html',
walletShouldBeComplete: true,
needProfile: true,
views: {
'main': {
templateUrl: 'views/preferencesEmail.html'
},
}
})
.state('preferencesBwsUrl', {
url: '/preferencesBwsUrl',
templateUrl: 'views/preferencesBwsUrl.html',
@ -397,6 +408,7 @@ angular
preferencesAltCurrency: 12,
preferencesBwsUrl: 12,
preferencesAlias: 12,
preferencesEmail: 12,
about: 12,
logs: 13,
add: 11,

View file

@ -390,6 +390,5 @@ angular.module('copayApp.services')
});
};
return root;
});