This repository has been archived by the owner on Oct 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
261 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.pv-25.ph-25 | ||
.flex-column | ||
.f-18.mb-15.em-400 | ||
span.f-18.mb-15.em-400(translate="{{ 'RECURRING_CONFIRM' + '.' + $ctrl.state + '.' + 'HEADER' }}") | ||
.f-14.em-300 | ||
span.f-14.em-300(ng-if="!$ctrl.endTime" translate="{{ 'RECURRING_CONFIRM' + '.' + $ctrl.state + '.' + 'BODY' }}" translate-values="{timing: $ctrl.recurringTiming()}") | ||
span.f-14.em-300(ng-if="$ctrl.endTime" translate="{{ 'RECURRING_CONFIRM' + '.' + $ctrl.state + '.' + 'BODY_WITH_ENDTIME' }}" translate-values="{timing: $ctrl.recurringTiming(), end: $ctrl.endTime.toDateString()}") | ||
.modal-footer.flex-end.flex-row | ||
.flex-1.flex-end | ||
button.button-muted.mrm(ng-if="$ctrl.state !== 'NEEDS_TRADES'" ng-click="$ctrl.onCancel()" translate="GO_BACK") | ||
button.button-primary(ng-if="$ctrl.state !== 'NEEDS_TRADES'" translate="{{ 'RECURRING_CONFIRM' + '.' + $ctrl.state + '.' + 'BUTTON' }}" ng-click="$ctrl.onProceed()") | ||
button.button-primary(ng-if="$ctrl.state === 'NEEDS_TRADES'" translate="{{ 'RECURRING_CONFIRM' + '.' + $ctrl.state + '.' + 'BUTTON' }}" ng-click="$ctrl.onCancel()") |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
.flex-row.flex-between.mbm | ||
span.primary.em-500 This is a Recurring Order | ||
.flex-row.flex-between.mbs | ||
.flex-center | ||
i.flex-center.icon-recurring.primary.f-16.mr-5 | ||
span.primary.em-500 This is a Recurring Order | ||
helper-button(content="RECURRING_HELPER") | ||
a.em-300.text-danger.underline(ng-show="$ctrl.showRemove" ng-click="$ctrl.onRemove()") Remove Recurring Order | ||
.pam.bg-ultralight-blue.border-light-blue | ||
.flex-row.pam | ||
.mv-5.phm(ng-hide="$ctrl.trade") | ||
span.f-13(translate="RECURRING_REMINDER" translate-values="{time: $ctrl.frequency}") | ||
.flex-row.phm.pv-5 | ||
span.flex-1.primary.colon(translate="AMOUNT") | ||
span.flex-5.ph-5-mobile {{ format($ctrl.trade.fiatAmount, $ctrl.dollars, true) }} | ||
.flex-row.pam | ||
span.flex-5.ph-5-mobile {{ format($ctrl.trade.fiatAmount, $ctrl.dollars, true) }} (+ {{ paymentFee | format }} {{ $ctrl.dollars.code }} Payment Fee) | ||
.flex-row.phm.pv-5 | ||
span.flex-1.primary.colon(translate="FREQUENCY") | ||
span.flex-5.ph-5-mobile(translate="FREQUENCY_INFO" translate-values="{timespan: timespan}") | ||
.flex-row.pam | ||
.flex-row.phm.pv-5 | ||
span.flex-1.primary.colon(translate="DURATION") | ||
span.flex-5.ph-5-mobile(ng-show="endTime" translate="DURATION_INFO" translate-values="{endTime: endTime}") | ||
span.flex-5.ph-5-mobile(ng-show="!endTime") Until you cancel or reach your limit, whichever happens first. | ||
.flex-column.mtm(ng-if="$ctrl.trade.state === 'completed'") | ||
.mb-10 | ||
span.f-12(translate="RECURRING_EMAIL_RECEIVE") | ||
a(ng-click="$ctrl.onClose()") Orders | ||
span.f-12(translate="TAB") | ||
div | ||
span.f-12(translate="AMOUNT_VARIATION_NOTE") |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
.kyc-status.flex-column.flex-center.flex-justify.border.pbl.ptl.phm(ng-show="$ctrl.getState() && $ctrl.level < 2") | ||
.flex-center.flex-justify.border-light-blue.pbl.ptl.phm(ng-show="$ctrl.getState() && $ctrl.level < 2") | ||
div | ||
h1.mbn.mtn | ||
i.type-h4(ng-class="$ctrl.getState().i") | ||
.flex-column.flex-center.flex-justify.ph-25 | ||
span.type-h5.mbs.mts(translate="{{$ctrl.getState().ns}}.TITLE") | ||
span.center.type-sm(ng-show="$ctrl.currency" translate="{{$ctrl.getState().ns}}.BODY" translate-values="{ccmax: $ctrl.getCardMax()}") | ||
.flex-center | ||
i.type-h4.primary(ng-class="$ctrl.getState().i") | ||
.flex-column.flex-justify.ph-25 | ||
span.type-h5.em-400.mbs.mts(translate="{{$ctrl.getState().ns}}.TITLE") | ||
span.type-sm(ng-show="$ctrl.currency" translate="{{$ctrl.getState().ns}}.BODY" translate-values="{ccmax: $ctrl.getCardMax()}") | ||
a.underline.type-sm.ptm(translate="{{$ctrl.getState().ns}}.LINK" ng-click="$ctrl.onTrigger()") |
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
29 changes: 29 additions & 0 deletions
29
assets/js/components/coinify/recurring-confirm.component.js
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,29 @@ | ||
angular | ||
.module('walletApp') | ||
.component('coinifyRecurringConfirm', { | ||
bindings: { | ||
frequency: '<', | ||
endTime: '<', | ||
exchange: '<', | ||
needsKyc: '<', | ||
onCancel: '&', | ||
onProceed: '&' | ||
}, | ||
templateUrl: 'partials/coinify/recurring-confirm.pug', | ||
controller: CoinifyRecurringConfirmController, | ||
controllerAs: '$ctrl' | ||
}); | ||
|
||
function CoinifyRecurringConfirmController (recurringTrade, coinify) { | ||
this.date = new Date(); | ||
this.recurringTiming = () => recurringTrade.getTimespan(this.date, this.frequency); | ||
this.needsMoreTradesForRecurring = coinify.needsMoreTradesForRecurring; | ||
|
||
const determineState = () => { | ||
if (this.needsKyc && this.needsMoreTradesForRecurring) return 'NEEDS_KYC_AND_TRADES'; | ||
if (this.needsKyc) return 'NEEDS_KYC'; | ||
if (this.needsMoreTradesForRecurring) return 'NEEDS_TRADES'; | ||
return 'PROCEED'; | ||
}; | ||
this.state = determineState(); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
angular | ||
.module('walletApp') | ||
.component('maintenanceWarning', { | ||
template: ( | ||
'<div class="ph-40 flex-center pv-10 f-16 bg-warning" ng-if="$ctrl.showBanner">' + | ||
'<i class="icon-alert f-24"></i><span class="ml-10" translate="DOWN_FOR_MAINTENANCE"></span>' + | ||
'</div>' | ||
), | ||
controller (Env) { | ||
Env.then(env => { | ||
this.showBanner = env.maintenance; | ||
}); | ||
} | ||
}); |
Oops, something went wrong.