refactor: event instances
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import { storeToRefs } from 'pinia';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useDisplay } from 'vuetify';
|
||||
import { useModuleStore } from '@KTXC/stores/moduleStore';
|
||||
import { useChronoInstancesStore } from '@/stores/chronoInstancesStore';
|
||||
import { useChronoOperationsStore } from '@/stores/chronoOperationsStore';
|
||||
import { useChronoSettingsStore } from '@/stores/chronoSettingsStore';
|
||||
import { useChronoUiStore } from '@/stores/chronoUiStore';
|
||||
@@ -28,6 +29,7 @@ const isChronoManagerAvailable = computed(() => {
|
||||
return moduleStore.has('chrono_manager') || moduleStore.has('ChronoManager')
|
||||
});
|
||||
|
||||
const chronoInstancesStore = useChronoInstancesStore();
|
||||
const chronoOperationsStore = useChronoOperationsStore();
|
||||
const chronoSettingsStore = useChronoSettingsStore();
|
||||
const chronoUiStore = useChronoUiStore();
|
||||
@@ -45,9 +47,10 @@ const {
|
||||
taskLists,
|
||||
filteredTasks,
|
||||
collections,
|
||||
occurrenceIndex,
|
||||
} = storeToRefs(chronoOperationsStore);
|
||||
|
||||
const { setVisibleRange } = chronoInstancesStore;
|
||||
|
||||
const {
|
||||
currentDate,
|
||||
sidebarVisible,
|
||||
@@ -91,7 +94,6 @@ const {
|
||||
} = chronoUiStore;
|
||||
|
||||
const {
|
||||
setVisibleRange,
|
||||
toggleCalendarVisibility,
|
||||
toggleTaskComplete,
|
||||
} = chronoOperationsStore;
|
||||
@@ -277,7 +279,6 @@ watch(() => route.fullPath, () => {
|
||||
v-if="!isTaskView"
|
||||
:view="calendarView"
|
||||
:current-date="currentDate"
|
||||
:occurrence-index="occurrenceIndex"
|
||||
:calendars="calendars"
|
||||
:initial-days-span="daysViewSpan"
|
||||
:initial-agenda-view-span="agendaViewSpan"
|
||||
|
||||
Reference in New Issue
Block a user