fix: creating instruments costs money
This commit is contained in:
parent
c8cb271052
commit
a226cb3fa0
|
@ -7,7 +7,7 @@
|
||||||
:label="process.instrument"
|
:label="process.instrument"
|
||||||
:max="process.cost"
|
:max="process.cost"
|
||||||
:value="$store.state.currency"
|
:value="$store.state.currency"
|
||||||
@click="create(process.instrument)"
|
@click="create(process)"
|
||||||
/>
|
/>
|
||||||
</responsive-grid>
|
</responsive-grid>
|
||||||
|
|
||||||
|
@ -35,8 +35,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
create(instrument) {
|
create(process) {
|
||||||
this.$store.commit('createInstrument', instrument)
|
this.$store.commit('createInstrument', process.instrument)
|
||||||
|
this.$store.commit('spendCurrency', process.cost)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue