mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 13:05:15 +00:00
Improve plotIndicator config
This commit is contained in:
parent
dc85902350
commit
54eaec1192
|
@ -21,8 +21,8 @@
|
|||
</b-form-select>
|
||||
</b-form-group>
|
||||
</div>
|
||||
|
||||
<b-form-group label="Type" label-for="plotTypeSelector">
|
||||
<div class="d-xl-flex flex-row flex-grow-1 justify-content-between mt-1">
|
||||
<b-form-group class="" label="Type" label-for="plotTypeSelector">
|
||||
<b-form-select
|
||||
id="plotTypeSelector"
|
||||
v-model="graphType"
|
||||
|
@ -32,11 +32,10 @@
|
|||
>
|
||||
</b-form-select>
|
||||
</b-form-group>
|
||||
<hr />
|
||||
<b-form-group label="Color" label-for="colsel" size="sm">
|
||||
<b-form-group label="Color" label-for="colsel" size="sm" class="ms-xl-1 flex-shrink-1">
|
||||
<b-input-group>
|
||||
<b-input-group-prepend>
|
||||
<div :style="{ 'background-color': selColor }" class="colorbox me-2"></div>
|
||||
<div :style="{ 'background-color': selColor }" class="colorbox me-1"></div>
|
||||
<!-- <b-form-input
|
||||
id="colsel"
|
||||
v-model="selColor"
|
||||
|
@ -54,7 +53,8 @@
|
|||
</b-input-group-append>
|
||||
</b-input-group>
|
||||
</b-form-group>
|
||||
<div class="d-flex d-flex-columns">
|
||||
</div>
|
||||
<div class="d-flex flex-row mt-2">
|
||||
<b-button
|
||||
v-if="addNew"
|
||||
class="flex-grow-1"
|
||||
|
@ -105,9 +105,9 @@ const filteredIndicators = computed(() => {
|
|||
);
|
||||
});
|
||||
|
||||
const newColor = () => {
|
||||
function newColor() {
|
||||
selColor.value = randomColor();
|
||||
};
|
||||
}
|
||||
|
||||
const combinedIndicator = computed(() => {
|
||||
if (cancelled.value || !selAvailableIndicator.value) {
|
||||
|
@ -120,14 +120,14 @@ const combinedIndicator = computed(() => {
|
|||
},
|
||||
};
|
||||
});
|
||||
const emitIndicator = () => {
|
||||
function emitIndicator() {
|
||||
emit('update:modelValue', combinedIndicator.value);
|
||||
};
|
||||
}
|
||||
|
||||
const clickCancel = () => {
|
||||
function clickCancel() {
|
||||
cancelled.value = true;
|
||||
emitIndicator();
|
||||
};
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
|
@ -150,7 +150,7 @@ watch(selColor, () => {
|
|||
|
||||
<style scoped>
|
||||
.colorbox {
|
||||
border-radius: 50%;
|
||||
border-radius: 50% !important;
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
height: 25px;
|
||||
|
|
Loading…
Reference in New Issue
Block a user