Updated offer durations copy and order

This commit is contained in:
Peter Zimon 2021-10-22 11:04:31 +02:00
parent 52159dffe6
commit cbfca5f23f
2 changed files with 12 additions and 15 deletions

View File

@ -33,11 +33,11 @@ export default class OffersController extends Controller {
duration: 'forever'
},
{
label: 'Once',
label: 'First-payment',
duration: 'once'
},
{
label: 'Multiple months',
label: 'Multiple-months',
duration: 'repeating'
}
];
@ -387,27 +387,27 @@ export default class OffersController extends Controller {
if (cadence === 'month') {
this.durations = [
{
label: 'Once',
label: 'First-payment',
duration: 'once'
},
{
label: 'Multiple-months',
duration: 'repeating'
},
{
label: 'Forever',
duration: 'forever'
},
{
label: 'Multiple months',
duration: 'repeating'
}
];
} else {
this.durations = [
{
label: 'Forever',
duration: 'forever'
label: 'First-payment',
duration: 'once'
},
{
label: 'Once',
duration: 'once'
label: 'Forever',
duration: 'forever'
}
];
if (this.offer.duration === 'repeating') {

View File

@ -42,10 +42,7 @@
</div>
<h4 class="gh-main-section-header small bn">
Discount information
{{#if this.offer.isNew}}
<span class="midgrey">  Once saved, this cannot be changed.</span>
{{/if}}
Discount information <span class="midgrey">  Once saved, this cannot be changed.</span>
</h4>
<div class="gh-main-section-content grey">
<GhFormGroup @errors={{this.errors}} @property="product-cadence">