mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
split charts into separate routes (#1605)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { computed, reactive, ref, watch } from 'vue';
|
||||
import { computed, reactive, watch } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
import { toast } from 'vue-sonner';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
@@ -16,7 +16,6 @@ export const useChartsStore = defineStore('Charts', () => {
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const activeTab = ref('instance');
|
||||
const mutualGraphFetchState = reactive(createDefaultFetchState());
|
||||
const mutualGraphStatus = reactive({
|
||||
isFetching: false,
|
||||
@@ -94,7 +93,6 @@ export const useChartsStore = defineStore('Charts', () => {
|
||||
}
|
||||
|
||||
return {
|
||||
activeTab,
|
||||
mutualGraphFetchState,
|
||||
mutualGraphStatus,
|
||||
resetMutualGraphState
|
||||
|
||||
@@ -97,11 +97,13 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
const isNavCollapsed = ref(true);
|
||||
const isSideBarTabShow = computed(() => {
|
||||
const currentRouteName = router.currentRoute.value?.name;
|
||||
return !(
|
||||
currentRouteName === 'friends-locations' ||
|
||||
currentRouteName === 'friend-list' ||
|
||||
currentRouteName === 'charts'
|
||||
);
|
||||
return ![
|
||||
'friends-locations',
|
||||
'friend-list',
|
||||
'charts',
|
||||
'charts-instance',
|
||||
'charts-mutual'
|
||||
].includes(currentRouteName);
|
||||
});
|
||||
|
||||
const isDataTableStriped = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user