Add Left / right chart pane option

This commit is contained in:
Matthias 2024-07-03 15:01:32 +02:00
parent 7dfabba2cc
commit 742edecb64
2 changed files with 12 additions and 1 deletions

View File

@ -32,6 +32,7 @@ export const useSettingsStore = defineStore('uiSettings', {
notifications: notificationDefaults,
profitDistributionBins: 20,
confirmDialog: true,
chartLabelSide: 'right' as 'left' | 'right',
};
},
getters: {

View File

@ -44,7 +44,17 @@
</div>
<div class="d-flex flex-column border rounded p-2 mb-2 gap-2">
<h4>Candle settings</h4>
<h4>Chart settings</h4>
<b-form-group description="Chart Scale side">
<b-form-radio-group
v-model="settingsStore.chartLabelSide"
name="chart-preference-options"
:options="[
{ value: 'left', text: 'Left' },
{ value: 'right', text: 'Right' },
]"
></b-form-radio-group>
</b-form-group>
<b-form-group description="Use Heikin Ashi candles in your charts">
<b-form-checkbox v-model="settingsStore.useHeikinAshiCandles"
>Use Heikin Ashi candles.</b-form-checkbox