mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Use auto-imported icons
This commit is contained in:
parent
1b2c4c3d31
commit
e01f2c75a5
|
@ -15,13 +15,13 @@
|
||||||
v-if="botStore.botStores[bot.botId].isBotLoggedIn"
|
v-if="botStore.botStores[bot.botId].isBotLoggedIn"
|
||||||
:title="botStore.botStores[bot.botId].isBotOnline ? 'Online' : 'Offline'"
|
:title="botStore.botStores[bot.botId].isBotOnline ? 'Online' : 'Offline'"
|
||||||
>
|
>
|
||||||
<OnlineIcon
|
<i-mdi-circle
|
||||||
class="ms-2 me-1 align-middle"
|
class="ms-2 me-1 align-middle"
|
||||||
:class="botStore.botStores[bot.botId].isBotOnline ? 'online' : 'offline'"
|
:class="botStore.botStores[bot.botId].isBotOnline ? 'online' : 'offline'"
|
||||||
></OnlineIcon>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else title="Login info expired, please login again.">
|
<div v-else title="Login info expired, please login again.">
|
||||||
<LoggedOutIcon class="offline" />
|
<i-mdi-cancel class="offline" />
|
||||||
</div>
|
</div>
|
||||||
</b-form-checkbox>
|
</b-form-checkbox>
|
||||||
<div v-if="!noButtons" class="float-end d-flex flex-align-center">
|
<div v-if="!noButtons" class="float-end d-flex flex-align-center">
|
||||||
|
@ -32,13 +32,13 @@
|
||||||
title="Edit bot"
|
title="Edit bot"
|
||||||
@click="$emit('edit')"
|
@click="$emit('edit')"
|
||||||
>
|
>
|
||||||
<EditIcon />
|
<i-mdi-cancel />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button v-else class="ms-1" size="sm" title="Login again" @click="$emit('editLogin')">
|
<b-button v-else class="ms-1" size="sm" title="Login again" @click="$emit('editLogin')">
|
||||||
<LoginIcon />
|
<i-mdi-login />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button class="ms-1" size="sm" title="Delete bot" @click="botRemoveModalVisible = true">
|
<b-button class="ms-1" size="sm" title="Delete bot" @click="botRemoveModalVisible = true">
|
||||||
<DeleteIcon />
|
<i-mdi-delete />
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,11 +58,6 @@
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { BotDescriptor } from '@/types';
|
import { BotDescriptor } from '@/types';
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import LoggedOutIcon from '~icons/mdi/cancel';
|
|
||||||
import OnlineIcon from '~icons/mdi/circle';
|
|
||||||
import DeleteIcon from '~icons/mdi/delete';
|
|
||||||
import LoginIcon from '~icons/mdi/login';
|
|
||||||
import EditIcon from '~icons/mdi/pencil';
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
bot: { required: true, type: Object as () => BotDescriptor },
|
bot: { required: true, type: Object as () => BotDescriptor },
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<b-link variant="outline-primary" class="nav-link" @click="toggleNight">
|
<b-link variant="outline-primary" class="nav-link" @click="toggleNight">
|
||||||
<ThemeLightDark />
|
<i-mdi-brightness-6 />
|
||||||
</b-link>
|
</b-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSettingsStore } from '@/stores/settings';
|
import { useSettingsStore } from '@/stores/settings';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import ThemeLightDark from '~icons/mdi/brightness-6';
|
|
||||||
|
|
||||||
const activeTheme = ref('');
|
const activeTheme = ref('');
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</v-select>
|
</v-select>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
<b-button size="sm" title="Abort" class="ms-1 mt-auto" variant="secondary" @click="abort">
|
<b-button size="sm" title="Abort" class="ms-1 mt-auto" variant="secondary" @click="abort">
|
||||||
<CloseIcon />
|
<i-mdi-close />
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,7 +19,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import vSelect from 'vue-select';
|
import vSelect from 'vue-select';
|
||||||
import CloseIcon from '~icons/mdi/close';
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: { required: false, default: '', type: String },
|
modelValue: { required: false, default: '', type: String },
|
||||||
|
|
|
@ -9,16 +9,16 @@
|
||||||
:title="!showBotOnly ? 'Showing Account balance' : 'Showing Bot balance'"
|
:title="!showBotOnly ? 'Showing Account balance' : 'Showing Bot balance'"
|
||||||
@click="showBotOnly = !showBotOnly"
|
@click="showBotOnly = !showBotOnly"
|
||||||
>
|
>
|
||||||
<RobotIcon v-if="showBotOnly" />
|
<i-mdi-robot v-if="showBotOnly" />
|
||||||
<AccountIcon v-else />
|
<i-mdi-bank v-else />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
size="sm"
|
size="sm"
|
||||||
:title="!hideSmallBalances ? 'Hide small balances' : 'Show all balances'"
|
:title="!hideSmallBalances ? 'Hide small balances' : 'Show all balances'"
|
||||||
@click="hideSmallBalances = !hideSmallBalances"
|
@click="hideSmallBalances = !hideSmallBalances"
|
||||||
>
|
>
|
||||||
<HideIcon v-if="hideSmallBalances" />
|
<i-mdi-eye-off v-if="hideSmallBalances" />
|
||||||
<ShowIcon v-else />
|
<i-mdi-eye v-else />
|
||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
<b-button class="float-end" size="sm" @click="botStore.activeBot.getBalance"
|
<b-button class="float-end" size="sm" @click="botStore.activeBot.getBalance"
|
||||||
|
@ -64,10 +64,6 @@ import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { BalanceValues } from '@/types';
|
import { BalanceValues } from '@/types';
|
||||||
import { TableField } from 'bootstrap-vue-next';
|
import { TableField } from 'bootstrap-vue-next';
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import AccountIcon from '~icons/mdi/bank';
|
|
||||||
import HideIcon from '~icons/mdi/eye-off';
|
|
||||||
import ShowIcon from '~icons/mdi/eye';
|
|
||||||
import RobotIcon from '~icons/mdi/robot';
|
|
||||||
|
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
const hideSmallBalances = ref(true);
|
const hideSmallBalances = ref(true);
|
||||||
|
|
|
@ -7,7 +7,7 @@ forceexit
|
||||||
title="Start Trading"
|
title="Start Trading"
|
||||||
@click="botStore.activeBot.startBot()"
|
@click="botStore.activeBot.startBot()"
|
||||||
>
|
>
|
||||||
<PlayIcon height="24" width="24" />
|
<i-mdi-play height="24" width="24" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary btn-sm ms-1"
|
class="btn btn-secondary btn-sm ms-1"
|
||||||
|
@ -15,7 +15,7 @@ forceexit
|
||||||
title="Stop Trading - Also stops handling open trades."
|
title="Stop Trading - Also stops handling open trades."
|
||||||
@click="handleStopBot()"
|
@click="handleStopBot()"
|
||||||
>
|
>
|
||||||
<StopIcon height="24" width="24" />
|
<i-mdi-stop height="24" width="24" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary btn-sm ms-1"
|
class="btn btn-secondary btn-sm ms-1"
|
||||||
|
@ -23,7 +23,7 @@ forceexit
|
||||||
title="StopBuy - Stops buying, but still handles open trades"
|
title="StopBuy - Stops buying, but still handles open trades"
|
||||||
@click="handleStopBuy()"
|
@click="handleStopBuy()"
|
||||||
>
|
>
|
||||||
<PauseIcon height="24" width="24" />
|
<i-mdi-pause height="24" width="24" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary btn-sm ms-1"
|
class="btn btn-secondary btn-sm ms-1"
|
||||||
|
@ -31,7 +31,7 @@ forceexit
|
||||||
title="Reload Config - reloads configuration including strategy, resetting all settings changed on the fly."
|
title="Reload Config - reloads configuration including strategy, resetting all settings changed on the fly."
|
||||||
@click="handleReloadConfig()"
|
@click="handleReloadConfig()"
|
||||||
>
|
>
|
||||||
<ReloadIcon height="24" width="24" />
|
<i-mdi-reload height="24" width="24" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary btn-sm ms-1"
|
class="btn btn-secondary btn-sm ms-1"
|
||||||
|
@ -39,7 +39,7 @@ forceexit
|
||||||
title="Force exit all"
|
title="Force exit all"
|
||||||
@click="handleForceExit()"
|
@click="handleForceExit()"
|
||||||
>
|
>
|
||||||
<ForceExitIcon height="24" width="24" />
|
<i-mdi-close-box-multiple height="24" width="24" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="botStore.activeBot.botState && botStore.activeBot.botState.force_entry_enable"
|
v-if="botStore.activeBot.botState && botStore.activeBot.botState.force_entry_enable"
|
||||||
|
@ -48,7 +48,7 @@ forceexit
|
||||||
title="Force enter - Immediately enter a trade at an optional price. Exits are then handled according to strategy rules."
|
title="Force enter - Immediately enter a trade at an optional price. Exits are then handled according to strategy rules."
|
||||||
@click="forceEnter = true"
|
@click="forceEnter = true"
|
||||||
>
|
>
|
||||||
<ForceEntryIcon style="font-size: 20px" />
|
<i-mdi-plus-box-multiple-outline style="font-size: 20px" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="botStore.activeBot.isWebserverMode && false"
|
v-if="botStore.activeBot.isWebserverMode && false"
|
||||||
|
@ -57,7 +57,7 @@ forceexit
|
||||||
title="Start Trading mode"
|
title="Start Trading mode"
|
||||||
@click="botStore.activeBot.startTrade()"
|
@click="botStore.activeBot.startTrade()"
|
||||||
>
|
>
|
||||||
<PlayIcon class="fs-4" />
|
<i-mdi-play class="fs-4" />
|
||||||
</button>
|
</button>
|
||||||
<ForceEntryForm v-model="forceEnter" :pair="botStore.activeBot.selectedPair" />
|
<ForceEntryForm v-model="forceEnter" :pair="botStore.activeBot.selectedPair" />
|
||||||
<MessageBox ref="msgBox" />
|
<MessageBox ref="msgBox" />
|
||||||
|
@ -69,12 +69,6 @@ import MessageBox, { MsgBoxObject } from '@/components/general/MessageBox.vue';
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { ForceSellPayload } from '@/types';
|
import { ForceSellPayload } from '@/types';
|
||||||
import { computed, defineComponent, ref } from 'vue';
|
import { computed, defineComponent, ref } from 'vue';
|
||||||
import ForceExitIcon from '~icons/mdi/close-box-multiple';
|
|
||||||
import PauseIcon from '~icons/mdi/pause';
|
|
||||||
import PlayIcon from '~icons/mdi/play';
|
|
||||||
import ForceEntryIcon from '~icons/mdi/plus-box-multiple-outline';
|
|
||||||
import ReloadIcon from '~icons/mdi/reload';
|
|
||||||
import StopIcon from '~icons/mdi/stop';
|
|
||||||
|
|
||||||
import ForceEntryForm from './ForceEntryForm.vue';
|
import ForceEntryForm from './ForceEntryForm.vue';
|
||||||
|
|
||||||
|
@ -82,12 +76,6 @@ export default defineComponent({
|
||||||
name: 'BotControls',
|
name: 'BotControls',
|
||||||
components: {
|
components: {
|
||||||
ForceEntryForm,
|
ForceEntryForm,
|
||||||
PlayIcon,
|
|
||||||
StopIcon,
|
|
||||||
PauseIcon,
|
|
||||||
ReloadIcon,
|
|
||||||
ForceExitIcon,
|
|
||||||
ForceEntryIcon,
|
|
||||||
MessageBox,
|
MessageBox,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
:disabled="blacklistSelect.length === 0"
|
:disabled="blacklistSelect.length === 0"
|
||||||
@click="deletePairs"
|
@click="deletePairs"
|
||||||
>
|
>
|
||||||
<DeleteIcon />
|
<i-mdi-delete />
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
<b-popover
|
<b-popover
|
||||||
|
@ -94,11 +94,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { defineComponent, onMounted, ref } from 'vue';
|
import { defineComponent, onMounted, ref } from 'vue';
|
||||||
import DeleteIcon from '~icons/mdi/delete';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FTBotAPIPairList',
|
name: 'FTBotAPIPairList',
|
||||||
components: { DeleteIcon },
|
|
||||||
setup() {
|
setup() {
|
||||||
const newblacklistpair = ref('');
|
const newblacklistpair = ref('');
|
||||||
const blackListShow = ref(false);
|
const blackListShow = ref(false);
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
title="Delete trade"
|
title="Delete trade"
|
||||||
@click="removePairLock(row.item)"
|
@click="removePairLock(row.item)"
|
||||||
>
|
>
|
||||||
<DeleteIcon />
|
<i-mdi-delete />
|
||||||
</b-button>
|
</b-button>
|
||||||
</template>
|
</template>
|
||||||
</b-table>
|
</b-table>
|
||||||
|
@ -28,11 +28,9 @@ import { Lock } from '@/types';
|
||||||
import { showAlert } from '@/stores/alerts';
|
import { showAlert } from '@/stores/alerts';
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import DeleteIcon from '~icons/mdi/delete';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'PairLockList',
|
name: 'PairLockList',
|
||||||
components: { DeleteIcon },
|
|
||||||
setup() {
|
setup() {
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
|
|
||||||
|
|
|
@ -12,19 +12,17 @@
|
||||||
title="Auto Refresh All bots"
|
title="Auto Refresh All bots"
|
||||||
@click="botStore.allRefreshFull"
|
@click="botStore.allRefreshFull"
|
||||||
>
|
>
|
||||||
<RefreshIcon />
|
<i-mdi-refresh />
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import RefreshIcon from '~icons/mdi/refresh';
|
|
||||||
import { defineComponent, computed } from 'vue';
|
import { defineComponent, computed } from 'vue';
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ReloadControl',
|
name: 'ReloadControl',
|
||||||
components: { RefreshIcon },
|
|
||||||
setup() {
|
setup() {
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
const autoRefreshLoc = computed({
|
const autoRefreshLoc = computed({
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
title="Forceexit"
|
title="Forceexit"
|
||||||
@click="$emit('forceExit', trade)"
|
@click="$emit('forceExit', trade)"
|
||||||
>
|
>
|
||||||
<ForceSellIcon class="me-1" />Forceexit
|
<i-mdi-close-box class="me-1" />Forceexit
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-if="botApiVersion > 1.1"
|
v-if="botApiVersion > 1.1"
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
title="Forceexit limit"
|
title="Forceexit limit"
|
||||||
@click="$emit('forceExit', trade, 'limit')"
|
@click="$emit('forceExit', trade, 'limit')"
|
||||||
>
|
>
|
||||||
<ForceSellIcon class="me-1" />Forceexit limit
|
<i-mdi-close-box class="me-1" />Forceexit limit
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-if="botApiVersion > 1.1"
|
v-if="botApiVersion > 1.1"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
title="Forceexit market"
|
title="Forceexit market"
|
||||||
@click="$emit('forceExit', trade, 'market')"
|
@click="$emit('forceExit', trade, 'market')"
|
||||||
>
|
>
|
||||||
<ForceSellIcon class="me-1" />Forceexit market
|
<i-mdi-close-box class="me-1" />Forceexit market
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-if="botApiVersion > 2.16"
|
v-if="botApiVersion > 2.16"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
title="Forceexit partial"
|
title="Forceexit partial"
|
||||||
@click="$emit('forceExitPartial', trade)"
|
@click="$emit('forceExitPartial', trade)"
|
||||||
>
|
>
|
||||||
<ForceSellPartialIcon class="me-1" />Forceexit partial
|
<i-mdi-close-box-multiple class="me-1" />Forceexit partial
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-if="botApiVersion >= 2.24 && trade.open_order_id"
|
v-if="botApiVersion >= 2.24 && trade.open_order_id"
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
title="Cancel open orders"
|
title="Cancel open orders"
|
||||||
@click="$emit('cancelOpenOrder', trade)"
|
@click="$emit('cancelOpenOrder', trade)"
|
||||||
>
|
>
|
||||||
<CancelIcon class="me-1" />Cancel open order
|
<i-mdi-cancel class="me-1" />Cancel open order
|
||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
<b-button
|
<b-button
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
title="Delete trade"
|
title="Delete trade"
|
||||||
@click="$emit('deleteTrade', trade)"
|
@click="$emit('deleteTrade', trade)"
|
||||||
>
|
>
|
||||||
<DeleteIcon class="me-1" />
|
<i-mdi-delete class="me-1" />
|
||||||
Delete
|
Delete
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,10 +60,6 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Trade } from '@/types';
|
import { Trade } from '@/types';
|
||||||
import CancelIcon from '~icons/mdi/cancel';
|
|
||||||
import ForceSellIcon from '~icons/mdi/close-box';
|
|
||||||
import ForceSellPartialIcon from '~icons/mdi/close-box-multiple';
|
|
||||||
import DeleteIcon from '~icons/mdi/delete';
|
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
botApiVersion: {
|
botApiVersion: {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Trade } from '@/types';
|
import { Trade } from '@/types';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import CancelIcon from '~icons/mdi/cancel';
|
|
||||||
import ActionIcon from '~icons/mdi/gesture-tap';
|
|
||||||
import TradeActions from './TradeActions.vue';
|
import TradeActions from './TradeActions.vue';
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
|
@ -36,7 +34,7 @@ const cancelOpenOrderHandler = (item: Trade) => {
|
||||||
title="Actions"
|
title="Actions"
|
||||||
@click="popoverOpen = !popoverOpen"
|
@click="popoverOpen = !popoverOpen"
|
||||||
>
|
>
|
||||||
<ActionIcon />
|
<i-mdi-gesture-tap />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-popover
|
<b-popover
|
||||||
:target="`btn-actions-${id}`"
|
:target="`btn-actions-${id}`"
|
||||||
|
@ -57,7 +55,7 @@ const cancelOpenOrderHandler = (item: Trade) => {
|
||||||
@cancel-open-order="cancelOpenOrderHandler"
|
@cancel-open-order="cancelOpenOrderHandler"
|
||||||
/>
|
/>
|
||||||
<b-button class="mt-1 w-100 text-start" size="sm" @click="popoverOpen = false">
|
<b-button class="mt-1 w-100 text-start" size="sm" @click="popoverOpen = false">
|
||||||
<CancelIcon class="me-1" />Close Actions menu
|
<i-mdi-cancel class="me-1" />Close Actions menu
|
||||||
</b-button>
|
</b-button>
|
||||||
</b-popover>
|
</b-popover>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
:title="`Edit this ${editableName}.`"
|
:title="`Edit this ${editableName}.`"
|
||||||
@click="editing = true"
|
@click="editing = true"
|
||||||
>
|
>
|
||||||
<EditIcon />
|
<i-mdi-pencil />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
size="sm"
|
size="sm"
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
:title="`Delete this ${editableName}.`"
|
:title="`Delete this ${editableName}.`"
|
||||||
@click="$emit('delete', modelValue)"
|
@click="$emit('delete', modelValue)"
|
||||||
>
|
>
|
||||||
<DeleteIcon />
|
<i-mdi-delete />
|
||||||
</b-button>
|
</b-button>
|
||||||
</template>
|
</template>
|
||||||
<b-button
|
<b-button
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
:title="`Add new ${editableName}.`"
|
:title="`Add new ${editableName}.`"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
@click="addNewClick"
|
@click="addNewClick"
|
||||||
><AddIcon />
|
><i-mdi-plus-box-outline />
|
||||||
</b-button>
|
</b-button>
|
||||||
<template v-if="addNew || editing">
|
<template v-if="addNew || editing">
|
||||||
<b-button
|
<b-button
|
||||||
|
@ -41,10 +41,10 @@
|
||||||
variant="primary"
|
variant="primary"
|
||||||
@click="saveNewName"
|
@click="saveNewName"
|
||||||
>
|
>
|
||||||
<CheckIcon />
|
<i-mdi-check />
|
||||||
</b-button>
|
</b-button>
|
||||||
<b-button size="sm" title="Abort" class="ms-1" variant="secondary" @click="abort">
|
<b-button size="sm" title="Abort" class="ms-1" variant="secondary" @click="abort">
|
||||||
<CloseIcon />
|
<i-mdi-close />
|
||||||
</b-button>
|
</b-button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,12 +52,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import CheckIcon from '~icons/mdi/check';
|
|
||||||
import CloseIcon from '~icons/mdi/close';
|
|
||||||
import DeleteIcon from '~icons/mdi/delete';
|
|
||||||
import EditIcon from '~icons/mdi/pencil';
|
|
||||||
import AddIcon from '~icons/mdi/plus-box-outline';
|
|
||||||
|
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<b-button @click="openLoginModal()"><LoginIcon class="me-1" />{{ loginText }}</b-button>
|
<b-button @click="openLoginModal()"><i-mdi-login class="me-1" />{{ loginText }}</b-button>
|
||||||
<b-modal
|
<b-modal
|
||||||
id="modal-prevent-closing"
|
id="modal-prevent-closing"
|
||||||
v-model="loginViewOpen"
|
v-model="loginViewOpen"
|
||||||
|
@ -21,7 +21,6 @@
|
||||||
import Login from '@/components/BotLogin.vue';
|
import Login from '@/components/BotLogin.vue';
|
||||||
import { AuthStorageWithBotId } from '@/types';
|
import { AuthStorageWithBotId } from '@/types';
|
||||||
import { nextTick, ref } from 'vue';
|
import { nextTick, ref } from 'vue';
|
||||||
import LoginIcon from '~icons/mdi/login';
|
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
loginText: { required: false, default: 'Login', type: String },
|
loginText: { required: false, default: 'Login', type: String },
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
size="sm"
|
size="sm"
|
||||||
class="align-self-start mt-1 ms-1"
|
class="align-self-start mt-1 ms-1"
|
||||||
@click="botStore.activeBot.setDetailTrade(null)"
|
@click="botStore.activeBot.setDetailTrade(null)"
|
||||||
><BackIcon /> Back</b-button
|
><i-mdi-arrow-left /> Back</b-button
|
||||||
>
|
>
|
||||||
<TradeDetail
|
<TradeDetail
|
||||||
:trade="botStore.activeBot.tradeDetail"
|
:trade="botStore.activeBot.tradeDetail"
|
||||||
|
@ -45,14 +45,12 @@ import CustomTradeList from '@/components/ftbot/CustomTradeList.vue';
|
||||||
import TradeDetail from '@/components/ftbot/TradeDetail.vue';
|
import TradeDetail from '@/components/ftbot/TradeDetail.vue';
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import BackIcon from '~icons/mdi/arrow-left';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'TradesList',
|
name: 'TradesList',
|
||||||
components: {
|
components: {
|
||||||
CustomTradeList,
|
CustomTradeList,
|
||||||
TradeDetail,
|
TradeDetail,
|
||||||
BackIcon,
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
history: { default: false, type: Boolean },
|
history: { default: false, type: Boolean },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user