Added creating new whiteboards from home screen, refactoring

This commit is contained in:
Veljko Tosic
2026-02-18 20:24:27 +01:00
parent 7bae0d4dd6
commit cae724f2d6
10 changed files with 76 additions and 18 deletions

View File

@@ -1,11 +1,11 @@
<script setup lang="ts">
import { onMounted, computed } from 'vue'
import { useRouter } from 'vue-router'
import { useWhiteboardStore } from '@/stores/whiteboards'
import { useWhiteboardsStore } from '@/stores/whiteboards'
import WhiteboardHistoryItem from './WhiteboardHistoryItem.vue'
const router = useRouter()
const store = useWhiteboardStore()
const store = useWhiteboardsStore()
onMounted(() => {
if (store.ownedWhiteboards.length === 0) store.getWhiteboardHistory()