improved ladder display
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</template>
|
||||
<template #prepend-inner>
|
||||
<v-btn variant="text" text="max" class="px-0" size="small"
|
||||
:disabled="!maxAmount" @click="setMax"/>
|
||||
:disabled="!maxAmount || order.amountIsTokenA===order.buy && !co.price" @click="setMax"/>
|
||||
</template>
|
||||
<template #append-inner>
|
||||
<v-btn :text="order.amountIsTokenA?co.baseToken.s:co.quoteToken.s+' worth'"
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
:color="color" :base-color="color"
|
||||
style="flex: 6em"
|
||||
/></td>
|
||||
<td class="weight">{{(weights[weights.length-1]*100).toFixed(1)}}%</td>
|
||||
<td class="weight">{{allocationText(weights[weights.length-1])}}</td>
|
||||
</tr>
|
||||
<tr v-for="num in rungs-2" class="ml-5">
|
||||
<td class="pl-5">{{prices[prices.length-1-num]}}</td>
|
||||
<td class="weight">{{(weights[prices.length-1-num]*100).toFixed(1)}}%</td>
|
||||
<td class="weight">{{allocationText(weights[prices.length-1-num])}}</td>
|
||||
</tr>
|
||||
</template>
|
||||
<tr>
|
||||
@@ -37,7 +37,7 @@
|
||||
:color="color" :base-color="color"
|
||||
style="flex: 6em"
|
||||
/></td>
|
||||
<td class="weight">{{weights.length?(weights[0]*100).toFixed(1):''}}%</td>
|
||||
<td class="weight">{{weights.length?allocationText(weights[0]):''}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user