bugfixes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<toolbar-pane title="Assets" icon="mdi-currency-btc">
|
||||
<needs-signer>
|
||||
<vault :owner="s.account" :num="0"/>
|
||||
<faucet v-if="s.chainId in [1337, 31337, 421614]" variant="outlined" text="Get Free Testnet Coins!" style="width: 15em"/>
|
||||
<faucet v-if="[1337, 31337, 421614].includes(s.chainId)" variant="outlined" text="Get Free Testnet Coins!" style="width: 15em"/>
|
||||
</needs-signer>
|
||||
</toolbar-pane>
|
||||
</template>
|
||||
|
||||
@@ -180,8 +180,10 @@ const endpoints = computed({
|
||||
}
|
||||
})
|
||||
|
||||
const alignTimes = ref(true)
|
||||
|
||||
const time1A = computed({
|
||||
get() { return _endpoints.value[0] === null ? 0 : _endpoints.value[0][0] },
|
||||
get() { return _endpoints.value[0] === null ? null : _endpoints.value[0][0] },
|
||||
set(v) {
|
||||
const flatline0 = _endpoints.value[0];
|
||||
update(
|
||||
@@ -203,7 +205,7 @@ const price1A = computed({
|
||||
})
|
||||
|
||||
const time1B = computed({
|
||||
get() { return _endpoints.value[0] === null ? 0 : _endpoints.value[0][2] },
|
||||
get() { return _endpoints.value[0] === null ? null : _endpoints.value[0][2] },
|
||||
set(v) {
|
||||
const flatline0 = _endpoints.value[0];
|
||||
update(
|
||||
@@ -225,7 +227,7 @@ const price1B = computed({
|
||||
})
|
||||
|
||||
const time2A = computed({
|
||||
get() { return _endpoints.value[1] === null ? 0 : _endpoints.value[1][0] },
|
||||
get() { return _endpoints.value[1] === null ? null : _endpoints.value[1][0] },
|
||||
set(v) {
|
||||
const flatline = _endpoints.value[1];
|
||||
update(
|
||||
@@ -247,7 +249,7 @@ const price2A = computed({
|
||||
})
|
||||
|
||||
const time2B = computed({
|
||||
get() { return _endpoints.value[1] === null ? 0 : _endpoints.value[1][2] },
|
||||
get() { return _endpoints.value[1] === null ? null : _endpoints.value[1][2] },
|
||||
set(v) {
|
||||
const flatline = _endpoints.value[1];
|
||||
update(
|
||||
@@ -288,7 +290,7 @@ function setShapes(a,b) {
|
||||
}
|
||||
|
||||
|
||||
const _extendLeft = ref(false)
|
||||
const _extendLeft = ref(true)
|
||||
const extendLeft = computed({
|
||||
get() {return _extendLeft.value},
|
||||
set(v) {
|
||||
@@ -304,7 +306,7 @@ const extendLeft = computed({
|
||||
})
|
||||
|
||||
|
||||
const _extendRight = ref(false)
|
||||
const _extendRight = ref(true)
|
||||
const extendRight = computed({
|
||||
get() {return _extendRight.value},
|
||||
set(v) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<v-text-field type="number" v-model="rungs"
|
||||
density="compact" hide-details class="mx-1 my-2" variant="outlined"
|
||||
label="Rungs"
|
||||
:color="color" :base-color="color" min="1"
|
||||
:color="color" :base-color="color" min="1" :max="MAX_RUNGS"
|
||||
:disabled="rungsDisabled"
|
||||
style="width: 4.5em;"
|
||||
/>
|
||||
@@ -92,6 +92,7 @@ function setEndpoints(a, b) {
|
||||
endpoints.value = [devectorize(a), devectorize(b)]
|
||||
}
|
||||
|
||||
const MAX_RUNGS = 10 // todo remove arbitrary limit
|
||||
|
||||
const rungs = computed({
|
||||
get() {
|
||||
@@ -102,6 +103,8 @@ const rungs = computed({
|
||||
props.builder.rungs = 1
|
||||
return
|
||||
}
|
||||
if (r>MAX_RUNGS)
|
||||
r = MAX_RUNGS
|
||||
let [a,b] = endpoints.value
|
||||
a = vectorize(a)
|
||||
b = vectorize(b)
|
||||
|
||||
Reference in New Issue
Block a user