refactor: code clean up
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -193,8 +193,8 @@ export const useChronoUiStore = defineStore('chronoUiStore', () => {
|
||||
await operationsStore.finishImport(refresh)
|
||||
}
|
||||
|
||||
async function initialize() {
|
||||
await operationsStore.initialize()
|
||||
async function initialize(viewMode: 'calendar' | 'tasks' = 'calendar') {
|
||||
await operationsStore.initialize(viewMode)
|
||||
if (selectedCollection.value && !operationsStore.collections.some(
|
||||
collection => collection.identifier === selectedCollection.value?.identifier,
|
||||
)) {
|
||||
|
||||
Reference in New Issue
Block a user