mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed price amount changing on save
no refs On (un)archiving a price, the visible amount for a price fluctuated till the save was completed due to incorrect amount calculation, fixed here.
This commit is contained in:
parent
fab98939fd
commit
b762d3a873
1 changed files with 2 additions and 0 deletions
|
@ -89,12 +89,14 @@ export default class ProductController extends Controller {
|
|||
@action
|
||||
async archivePrice(price) {
|
||||
price.active = false;
|
||||
price.amount = price.amount * 100;
|
||||
this.send('savePrice', price);
|
||||
}
|
||||
|
||||
@action
|
||||
async activatePrice(price) {
|
||||
price.active = true;
|
||||
price.amount = price.amount * 100;
|
||||
this.send('savePrice', price);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue