minor touchups
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-slot:append-inner>
|
<template v-slot:append-inner>
|
||||||
<v-btn @click="os.amountIsTokenA=!os.amountIsTokenA" variant="outlined" class="mr-2">
|
<v-btn @click="os.amountIsTokenA=!os.amountIsTokenA" variant="outlined" class="mr-2">
|
||||||
{{ amountToken.symbol }}
|
{{ os.amountToken.symbol }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn :text="os.amountIsTotal ? 'total' : 'per tranche'" variant="outlined"
|
<v-btn :text="os.amountIsTotal ? 'total' : 'per tranche'" variant="outlined"
|
||||||
@click="os.amountIsTotal=!os.amountIsTotal" class="total"/>
|
@click="os.amountIsTotal=!os.amountIsTotal" class="total"/>
|
||||||
@@ -24,7 +24,6 @@ import {computed} from "vue";
|
|||||||
const s = useStore()
|
const s = useStore()
|
||||||
const os = useOrderStore()
|
const os = useOrderStore()
|
||||||
|
|
||||||
const amountToken = computed( ()=>os.amountIsTokenA ? os.tokenA.symbol : os.tokenB.symbol )
|
|
||||||
const inToken = computed( ()=>os.buy ? os.tokenB : os.tokenA )
|
const inToken = computed( ()=>os.buy ? os.tokenB : os.tokenA )
|
||||||
const maxAmount = computed(()=>{
|
const maxAmount = computed(()=>{
|
||||||
const balance = s.balances[inToken]
|
const balance = s.balances[inToken]
|
||||||
|
|||||||
Reference in New Issue
Block a user