From ddfa519fbfdd1b1b8ee9901abdd1d5edfb5d37d0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 23 Sep 2023 16:26:00 +0200 Subject: [PATCH] Update location of alerts function --- src/components/charts/PlotConfigurator.vue | 2 +- src/components/ftbot/PairLockList.vue | 2 +- src/{stores => shared}/alerts.ts | 0 src/shared/notifications.ts | 2 +- src/stores/ftbot.ts | 2 +- src/stores/pairlistConfig.ts | 2 +- src/views/SettingsView.vue | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename src/{stores => shared}/alerts.ts (100%) diff --git a/src/components/charts/PlotConfigurator.vue b/src/components/charts/PlotConfigurator.vue index e8fed3fb..cf6a1e52 100644 --- a/src/components/charts/PlotConfigurator.vue +++ b/src/components/charts/PlotConfigurator.vue @@ -159,7 +159,7 @@ import EditValue from '@/components/general/EditValue.vue'; import PlotConfigSelect from '@/components/charts/PlotConfigSelect.vue'; import PlotIndicator from '@/components/charts/PlotIndicator.vue'; -import { showAlert } from '@/stores/alerts'; +import { showAlert } from '@/shared/alerts'; import { IndicatorConfig, PlotConfig } from '@/types'; import PlotIndicatorSelect from './PlotIndicatorSelect.vue'; diff --git a/src/components/ftbot/PairLockList.vue b/src/components/ftbot/PairLockList.vue index f5b211da..3f9a5b2a 100644 --- a/src/components/ftbot/PairLockList.vue +++ b/src/components/ftbot/PairLockList.vue @@ -27,7 +27,7 @@ import { timestampms } from '@/shared/formatters'; import { Lock } from '@/types'; -import { showAlert } from '@/stores/alerts'; +import { showAlert } from '@/shared/alerts'; import { useBotStore } from '@/stores/ftbotwrapper'; import { TableField } from 'bootstrap-vue-next'; const botStore = useBotStore(); diff --git a/src/stores/alerts.ts b/src/shared/alerts.ts similarity index 100% rename from src/stores/alerts.ts rename to src/shared/alerts.ts diff --git a/src/shared/notifications.ts b/src/shared/notifications.ts index 3879da2c..fd78c41c 100644 --- a/src/shared/notifications.ts +++ b/src/shared/notifications.ts @@ -1,4 +1,4 @@ -import { showAlert } from '@/stores/alerts'; +import { showAlert } from '@/shared/alerts'; import { useSettingsStore } from '@/stores/settings'; import { FTWsMessage, FtWsMessageTypes } from '@/types/wsMessageTypes'; diff --git a/src/stores/ftbot.ts b/src/stores/ftbot.ts index d0eeaf84..da3dc8a5 100644 --- a/src/stores/ftbot.ts +++ b/src/stores/ftbot.ts @@ -50,7 +50,7 @@ import { } from '@/types'; import axios, { AxiosResponse } from 'axios'; import { defineStore } from 'pinia'; -import { showAlert } from './alerts'; +import { showAlert } from '../shared/alerts'; import { useWebSocket } from '@vueuse/core'; import { FTWsMessage, FtWsMessageTypes } from '@/types/wsMessageTypes'; import { showNotification } from '@/shared/notifications'; diff --git a/src/stores/pairlistConfig.ts b/src/stores/pairlistConfig.ts index 23898730..88563b1f 100644 --- a/src/stores/pairlistConfig.ts +++ b/src/stores/pairlistConfig.ts @@ -13,7 +13,7 @@ import { TradingMode, } from '@/types'; import { computed, ref, toRaw, watch } from 'vue'; -import { showAlert } from './alerts'; +import { showAlert } from '../shared/alerts'; import { isNotUndefined } from '@/shared/formatters'; export const usePairlistConfigStore = defineStore( diff --git a/src/views/SettingsView.vue b/src/views/SettingsView.vue index 91419c33..b644998d 100644 --- a/src/views/SettingsView.vue +++ b/src/views/SettingsView.vue @@ -59,7 +59,7 @@