dynamisation du code

This commit is contained in:
Gabriel Goldbronn
2025-03-05 23:42:45 +01:00
parent b8e682f333
commit a540d12ed2
18 changed files with 377 additions and 162 deletions

View File

@@ -1,8 +1,9 @@
<script setup lang="ts">
import {lectureListIsOpen, playlistsIsOpen, useSearchStore} from '../stores/globalStore.ts'
import {lectureListIsOpen, playlistsIsOpen} from '../stores/globalStore.ts'
import {searchStore} from '../stores/dataStore.ts'
import SearchIcon from "../assets/Icons/SearchIcon.vue";
const searchStore = useSearchStore();
const search = searchStore();
const lectureList = lectureListIsOpen();
const playlists = playlistsIsOpen();
@@ -10,7 +11,7 @@ const playlists = playlistsIsOpen();
const updateSearch = (event: Event) => {
lectureList.closeLectureList();
playlists.closePlaylists();
searchStore.updateSearch((event.target as HTMLInputElement).value);
search.updateSearch((event.target as HTMLInputElement).value);
};
</script>