feat: title as menu link and updated lists history
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { getRecentLists } from "@/lib/lists";
|
||||
import { useListStore } from "@/stores/lists";
|
||||
import { ArrowBigRightDashIcon, DicesIcon, HistoryIcon } from "@lucide/vue";
|
||||
import { generateSlug } from "random-word-slugs";
|
||||
import { defineAsyncComponent, onBeforeMount, ref } from "vue";
|
||||
@@ -9,7 +9,8 @@ const RecentItem = defineAsyncComponent(
|
||||
);
|
||||
|
||||
const listNameInput = ref<string>(generateSlug(4));
|
||||
const recentLists = ref<string[]>(getRecentLists());
|
||||
|
||||
const { lists: recentLists } = useListStore();
|
||||
|
||||
function onRandom() {
|
||||
listNameInput.value = generateSlug(4);
|
||||
|
||||
Reference in New Issue
Block a user