mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Fix some type errors
This commit is contained in:
parent
8ab726bbd7
commit
3347d055f0
|
@ -36,6 +36,7 @@ import axios from 'axios';
|
||||||
import ThemeLightDark from 'vue-material-design-icons/Brightness6.vue';
|
import ThemeLightDark from 'vue-material-design-icons/Brightness6.vue';
|
||||||
import { FTHTMLStyleElement } from '@/types/styleElement';
|
import { FTHTMLStyleElement } from '@/types/styleElement';
|
||||||
import { useSettingsStore } from '@/stores/settings';
|
import { useSettingsStore } from '@/stores/settings';
|
||||||
|
import { ThemeType } from '@/shared/themes';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'BootswatchThemeSelect',
|
name: 'BootswatchThemeSelect',
|
||||||
|
@ -48,7 +49,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const activeTheme = ref('');
|
const activeTheme = ref('');
|
||||||
const themeList = ref([]);
|
const themeList = ref<ThemeType[]>([]);
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
|
|
||||||
const setTheme = (themeName) => {
|
const setTheme = (themeName) => {
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default defineComponent({
|
||||||
EditIcon,
|
EditIcon,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
bot: { required: true, type: Object },
|
bot: { required: true, type: Object as () => BotDescriptor },
|
||||||
noButtons: { default: false, type: Boolean },
|
noButtons: { default: false, type: Boolean },
|
||||||
},
|
},
|
||||||
emits: ['edit'],
|
emits: ['edit'],
|
||||||
|
|
|
@ -5,7 +5,7 @@ forceexit
|
||||||
class="btn btn-secondary btn-sm ml-1"
|
class="btn btn-secondary btn-sm ml-1"
|
||||||
:disabled="!botStore.activeBot.isTrading || isRunning"
|
:disabled="!botStore.activeBot.isTrading || isRunning"
|
||||||
title="Start Trading"
|
title="Start Trading"
|
||||||
@click="startBot()"
|
@click="botStore.activeBot.startBot()"
|
||||||
>
|
>
|
||||||
<PlayIcon />
|
<PlayIcon />
|
||||||
</button>
|
</button>
|
||||||
|
@ -59,7 +59,7 @@ forceexit
|
||||||
:disabled="isTrading"
|
:disabled="isTrading"
|
||||||
class="btn btn-secondary btn-sm ml-1"
|
class="btn btn-secondary btn-sm ml-1"
|
||||||
title="Start Trading mode"
|
title="Start Trading mode"
|
||||||
@click="startTrade()"
|
@click="botStore.activeBot.startTrade()"
|
||||||
>
|
>
|
||||||
<PlayIcon />
|
<PlayIcon />
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -22,7 +22,10 @@
|
||||||
>,
|
>,
|
||||||
<strong
|
<strong
|
||||||
>force entry:
|
>force entry:
|
||||||
{{ botStore.activeBot.botState.force_entry_enable || botState.forcebuy_enabled }}</strong
|
{{
|
||||||
|
botStore.activeBot.botState.force_entry_enable ||
|
||||||
|
botStore.activeBot.botState.forcebuy_enabled
|
||||||
|
}}</strong
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -229,7 +229,7 @@ export default defineComponent({
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => botStore.activeBot.detailTradeId,
|
() => botStore.activeBot.detailTradeId,
|
||||||
(val: number) => {
|
(val) => {
|
||||||
const index = props.trades.findIndex((v) => v.trade_id === val);
|
const index = props.trades.findIndex((v) => v.trade_id === val);
|
||||||
// Unselect when another tradeTable is selected!
|
// Unselect when another tradeTable is selected!
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user