Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #734 from blockchain/coinify
Browse files Browse the repository at this point in the history
Coinify Directories
  • Loading branch information
Sjors authored Oct 26, 2016
2 parents ee65f23 + 13237a7 commit 1f86714
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions app/partials/buy-modal.jade → app/partials/coinify-modal.jade
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
.modal-body.fade.flex-center.flex-justify(class="{{isxStep}}" ng-class="{'summary': onStep('summary'), 'isx': onStep('isx')}")
.alert-in-app
alerts(context="alerts")
div.width-80(ng-show="onStep('select-country')" ng-controller="BuySelectCountryCtrl")
include ./buy/select-country
div.width-80(ng-show="onStep('email')" ng-controller="BuyEmailCtrl")
include ./buy/email
div.width-80(ng-show="onStep('accept-terms')" ng-controller="BuyAcceptTermsCtrl")
include ./buy/accept-terms
div.width-80(ng-show="onStep('select-payment-method')" ng-controller="BuySelectPaymentMethodCtrl")
include ./buy/select-payment-method
div.width-80(ng-show="onStep('summary')" ng-controller="BuySummaryCtrl")
include ./buy/summary
div.width-80(ng-show="onStep('select-country')" ng-controller="CoinifyCountryController")
include ./coinify/country
div.width-80(ng-show="onStep('email')" ng-controller="CoinifyEmailController")
include ./coinify/email
div.width-80(ng-show="onStep('accept-terms')" ng-controller="CoinifySignupController")
include ./coinify/signup
div.width-80(ng-show="onStep('select-payment-method')" ng-controller="CoinifyMediumController")
include ./coinify/medium
div.width-80(ng-show="onStep('summary')" ng-controller="CoinifySummaryController")
include ./coinify/summary
div.iframe(ng-if="onStep('isx')")
isignthis(transaction-id='trade.iSignThisID' on-load="loadPayment()" on-complete="formatTrade" payment-info="paymentInfo" on-resize="onResize(step)")
div.width-80(ng-if="onStep('trade-in-review', 'trade-formatted')")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular
.module('walletApp')
.controller('BuyCtrl', BuyCtrl);
.controller('CoinifyController', CoinifyController);

function BuyCtrl ($scope, $filter, $q, MyWallet, Wallet, MyWalletHelpers, Alerts, currency, $uibModalInstance, trade, buyOptions, $timeout, $interval, formatTrade, buySell, $rootScope) {
function CoinifyController ($scope, $filter, $q, MyWallet, Wallet, MyWalletHelpers, Alerts, currency, $uibModalInstance, trade, buyOptions, $timeout, $interval, formatTrade, buySell, $rootScope) {
$scope.settings = Wallet.settings;
$scope.btcCurrency = $scope.settings.btcCurrency;
$scope.currencies = currency.coinifyCurrencies;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular
.module('walletApp')
.controller('BuySelectCountryCtrl', BuySelectCountryCtrl);
.controller('CoinifyCountryController', CoinifyCountryController);

function BuySelectCountryCtrl ($scope, country, MyWallet, buySell) {
function CoinifyCountryController ($scope, country, MyWallet, buySell) {
$scope.countries = country;

let blacklist = [{'Name': 'Algeria', 'Code': 'DZ'},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular
.module('walletApp')
.controller('BuyEmailCtrl', BuyEmailCtrl);
.controller('CoinifyEmailController', CoinifyEmailController);

function BuyEmailCtrl ($scope, Alerts, Wallet, $q) {
function CoinifyEmailController ($scope, Alerts, Wallet, $q) {
$scope.toggleEmail = () => $scope.editEmail = !$scope.editEmail;

$scope.changeEmail = (email, successCallback, errorCallback) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular
.module('walletApp')
.controller('BuySelectPaymentMethodCtrl', BuySelectPaymentMethodCtrl);
.controller('CoinifyMediumController', CoinifyMediumController);

function BuySelectPaymentMethodCtrl ($scope, Alerts, buySell) {
function CoinifyMediumController ($scope, Alerts, buySell) {
$scope.$parent.method = $scope.trade ? $scope.trade.medium : undefined;
$scope.$parent.methods = {};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular
.module('walletApp')
.controller('BuyAcceptTermsCtrl', BuyAcceptTermsCtrl);
.controller('CoinifySignupController', CoinifySignupController);

function BuyAcceptTermsCtrl ($scope, Alerts, buySell) {
function CoinifySignupController ($scope, Alerts, buySell) {
$scope.$parent.signup = () => {
$scope.status.waiting = true;
Alerts.clear($scope.alerts);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular
.module('walletApp')
.controller('BuySummaryCtrl', BuySummaryCtrl);
.controller('CoinifySummaryController', CoinifySummaryController);

function BuySummaryCtrl ($scope, $q, $timeout, Wallet, buySell, currency, Alerts) {
function CoinifySummaryController ($scope, $q, $timeout, Wallet, buySell, currency, Alerts) {
$scope.$parent.limits = {};
$scope.exchange = buySell.getExchange();
$scope.toggleEditAmount = () => $scope.$parent.editAmount = !$scope.$parent.editAmount;
Expand Down
4 changes: 2 additions & 2 deletions assets/js/services/buySell.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ function buySell ($rootScope, $timeout, $q, $state, $uibModal, $uibModalStack, W

function openBuyView (trade = null, options = {}) {
return $uibModal.open({
templateUrl: 'partials/buy-modal.jade',
templateUrl: 'partials/coinify-modal.jade',
windowClass: 'bc-modal auto buy',
controller: 'BuyCtrl',
controller: 'CoinifyController',
backdrop: 'static',
keyboard: false,
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function (config) {
'assets/js/walletLazyLoad.js',
'assets/js/core/*.js',
'tests/filters/*.coffee',
'tests/controllers/*.coffee',
'tests/controllers/**/*.coffee',
'tests/components/*.coffee',
'tests/services/**/*.coffee',
'tests/directives/*.coffee',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe "BuySelectCountryCtrl", ->
describe "CoinifyCountryController", ->
scope = undefined
country = undefined
MyWallet = undefined
Expand Down Expand Up @@ -29,7 +29,7 @@ describe "BuySelectCountryCtrl", ->

getControllerScope = (params = {}) ->
scope = $rootScope.$new()
$controller "BuySelectCountryCtrl",
$controller "CoinifyCountryController",
$scope: scope,
scope

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe "BuyCtrl", ->
describe "CoinifyController", ->
scope = undefined
Wallet = undefined
Alerts = undefined
Expand Down Expand Up @@ -45,7 +45,7 @@ describe "BuyCtrl", ->

getControllerScope = (params = {}) ->
scope = $rootScope.$new()
$controller "BuyCtrl",
$controller "CoinifyController",
$scope: scope,
$uibModalInstance: params.modalInstance ? { close: (->) dismiss: (->) }
trade: params.trade ? false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe "BuySummaryCtrl", ->
describe "CoinifySummaryController", ->
scope = undefined
Wallet = undefined
currency = undefined
Expand Down Expand Up @@ -58,7 +58,7 @@ describe "BuySummaryCtrl", ->
getControllerScope = (params = {}) ->
scope = $rootScope.$new()
scope.transaction = {fiat: 0, btc: 0, fee: 0, total: 0, currency: {symbol: 'E', code: 'EUR'}};
$controller "BuySummaryCtrl",
$controller "CoinifySummaryController",
$scope: scope
exchange: {}
scope
Expand Down

0 comments on commit 1f86714

Please sign in to comment.