mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 13:35:17 +00:00
Small fixes
This commit is contained in:
parent
3718ba007a
commit
9d682da2ca
|
@ -2,7 +2,7 @@
|
||||||
<div class="d-flex align-items-center justify-content-between w-100">
|
<div class="d-flex align-items-center justify-content-between w-100">
|
||||||
<span class="mr-2">{{ bot.botName || bot.botId }}</span>
|
<span class="mr-2">{{ bot.botName || bot.botId }}</span>
|
||||||
|
|
||||||
<div class="align-items-center" :class="noButtons ? 'd-inline' : 'd-flex'">
|
<div class="align-items-center d-flex">
|
||||||
<span class="ml-2 align-middle">{{
|
<span class="ml-2 align-middle">{{
|
||||||
allIsBotOnline[bot.botId] ? '🟢' : '🔴'
|
allIsBotOnline[bot.botId] ? '🟢' : '🔴'
|
||||||
}}</span>
|
}}</span>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
R
|
R
|
||||||
</b-form-checkbox>
|
</b-form-checkbox>
|
||||||
<div v-if="!noButtons" class="d-flex flex-align-cent">
|
<div v-if="!noButtons" class="d-flex flex-align-cent">
|
||||||
<b-button class="ml-1" size="sm" title="Edit bot" @click="clickRemoveBot(bot)">
|
<b-button class="ml-1" size="sm" title="Edit bot">
|
||||||
<EditIcon :size="16" title="Edit Button" />
|
<EditIcon :size="16" title="Edit Button" />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button class="ml-1" size="sm" title="Delete bot" @click.prevent="clickRemoveBot(bot)">
|
<b-button class="ml-1" size="sm" title="Delete bot" @click.prevent="clickRemoveBot(bot)">
|
||||||
|
@ -59,11 +59,10 @@ export default class BotList extends Vue {
|
||||||
}
|
}
|
||||||
|
|
||||||
set autoRefreshLoc(v) {
|
set autoRefreshLoc(v) {
|
||||||
// Dummy setter - Set via change event.
|
// Dummy setter - Set via change event to avoid bouncing
|
||||||
}
|
}
|
||||||
|
|
||||||
changeEvent(v) {
|
changeEvent(v) {
|
||||||
console.log('changeEvent', v);
|
|
||||||
this.$store.dispatch(`ftbot/${this.bot.botId}/setAutoRefresh`, v);
|
this.$store.dispatch(`ftbot/${this.bot.botId}/setAutoRefresh`, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import { BotDescriptor, BotDescriptors } from '@/types';
|
||||||
import { AxiosInstance } from 'axios';
|
import { AxiosInstance } from 'axios';
|
||||||
import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot';
|
import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot';
|
||||||
|
|
||||||
const AUTO_REFRESH = 'ft_auto_refresh';
|
|
||||||
|
|
||||||
interface FTMultiBotState {
|
interface FTMultiBotState {
|
||||||
selectedBot: string;
|
selectedBot: string;
|
||||||
availableBots: BotDescriptors;
|
availableBots: BotDescriptors;
|
||||||
|
@ -91,9 +89,7 @@ export default function createBotStore(store) {
|
||||||
console.warn(`Botid ${botId} not available, but selected.`);
|
console.warn(`Botid ${botId} not available, but selected.`);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setAutoRefresh(state: FTMultiBotState, newRefreshValue: boolean) {
|
|
||||||
state.autoRefresh = newRefreshValue;
|
|
||||||
},
|
|
||||||
setRefreshing(state, refreshing: boolean) {
|
setRefreshing(state, refreshing: boolean) {
|
||||||
state.refreshing = refreshing;
|
state.refreshing = refreshing;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user