mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed cancel button on tier modal with free trials
refs https://github.com/TryGhost/Team/issues/1724
This commit is contained in:
parent
1f9fadf4c7
commit
a016834427
1 changed files with 1 additions and 1 deletions
|
@ -145,10 +145,10 @@ export default class ModalTierPrice extends ModalBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
this.tier.rollbackAttributes();
|
|
||||||
this.newBenefit = TierBenefitItem.create({isNew: true, name: ''});
|
this.newBenefit = TierBenefitItem.create({isNew: true, name: ''});
|
||||||
const finalBenefits = this.savedBenefits || emberA([]);
|
const finalBenefits = this.savedBenefits || emberA([]);
|
||||||
this.tier.set('benefits', finalBenefits);
|
this.tier.set('benefits', finalBenefits);
|
||||||
|
this.tier.rollbackAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
@task({drop: true})
|
@task({drop: true})
|
||||||
|
|
Loading…
Add table
Reference in a new issue