diagonal order form
This commit is contained in:
@@ -29,7 +29,7 @@ import {computed, ref} from "vue";
|
||||
|
||||
|
||||
export const useStore = defineStore('app', ()=> {
|
||||
const nav = ref(false)
|
||||
const nav = ref(false) // controls opening navigation drawer
|
||||
|
||||
const _chainId = ref(null)
|
||||
const _chainInfo = ref({})
|
||||
@@ -136,6 +136,7 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
const timeUnitIndex = ref(0)
|
||||
const routes = ref([])
|
||||
const routesPending = ref(false)
|
||||
const utc = ref(false)
|
||||
|
||||
const validOrder = computed(() => amount.value > 0 && routes.value.length > 0)
|
||||
const route = computed(() => routes.value.length === 0 ? null : routes.value[0])
|
||||
@@ -164,6 +165,6 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
return {
|
||||
tokenA, tokenB, buy, inverted, amount, amountIsTokenA, amountIsTotal, limitPrice, limitPrice2, tranches,
|
||||
interval, intervalIsTotal, timeUnitIndex, routes, routesPending, validOrder, route, base, quote, pairSymbol,
|
||||
limitIsMinimum, amountToken, amountIsInput, setDefaultTokens, totalAmount, trancheAmount,
|
||||
limitIsMinimum, amountToken, amountIsInput, setDefaultTokens, totalAmount, trancheAmount, utc,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user