if pn was not enabled by user, do not show pn options
This commit is contained in:
parent
9a10394cd9
commit
16dcb556e4
3 changed files with 8 additions and 4 deletions
|
|
@ -97,6 +97,9 @@ if [ ! -d $PROJECT ]; then
|
|||
cordova plugin add cordova-plugin-globalization
|
||||
checkOK
|
||||
|
||||
cordova plugin add cordova.plugins.diagnostic
|
||||
checkOK
|
||||
|
||||
cordova plugin add cordova-plugin-splashscreen
|
||||
checkOK
|
||||
|
||||
|
|
@ -243,5 +246,3 @@ if [ $CURRENT_OS == "WP8" ]; then
|
|||
checkOK
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
<div translate>Use Unconfirmed Funds</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div ng-show="prefGlobal.usePushNotifications">
|
||||
<div ng-show="prefGlobal.usePushNotifications && PNEnabledByUser">
|
||||
<h4></h4>
|
||||
<ul class="no-bullet m0">
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController',
|
|||
$scope.glideraEnabled = config.glidera.enabled;
|
||||
$scope.glideraTestnet = config.glidera.testnet;
|
||||
$scope.pushNotifications = config.pushNotifications.enabled;
|
||||
cordova.plugins.diagnostic.isRemoteNotificationsEnabled(function(isEnabled) {
|
||||
$scope.PNEnabledByUser = isEnabled;
|
||||
});
|
||||
};
|
||||
|
||||
var unwatchSpendUnconfirmed = $scope.$watch('spendUnconfirmed', function(newVal, oldVal) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue