forked from Encrypt-S/NavPay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bitpay#5913 from matiu/j
do not low fee policy for certain services
- Loading branch information
Showing
5 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use strict'; | ||
|
||
angular.module('copayApp.directives') | ||
/** | ||
* Replaces img tag with its svg content to allow for CSS styling of the svg. | ||
*/ | ||
.directive('noLowFee', function($log, $ionicHistory, configService, popupService) { | ||
return { | ||
restrict: 'A', | ||
link: function(scope, elem, attrs, ctrl) { | ||
|
||
|
||
elem.bind('click', function() { | ||
configService.whenAvailable(function(config) { | ||
if (config.wallet.settings.feeLevel.match(/conomy/)) { | ||
$log.debug('Economy Fee setting... disabling link:' + elem.text()); | ||
popupService.showAlert('Low Fee Error', 'Please change your Bitcoin Network Fee Policy setting to Normal or higher to use this service', function() { | ||
$ionicHistory.goBack(); | ||
}); | ||
} | ||
}); | ||
}); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters