mirror of https://github.com/BTCPrivate/copay.git
if pn was not enabled by user, do not show pn options
This commit is contained in:
parent
9a10394cd9
commit
16dcb556e4
|
@ -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
|
||||
|
||||
|
@ -190,7 +193,7 @@ if [ $CURRENT_OS == "ANDROID" ]; then
|
|||
|
||||
# cp android/AndroidManifest.xml $PROJECT/platforms/android/AndroidManifest.xml
|
||||
# checkOK
|
||||
|
||||
|
||||
cp android/build-extras.gradle $PROJECT/platforms/android/build-extras.gradle
|
||||
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…
Reference in New Issue