mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
Move new playlist button to nav
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="playlists-nav">
|
||||
<SimpleTitle :text="'Playlists'" />
|
||||
<div class="buttons">
|
||||
<button @click="showNewPlaylistModal()"><PlusSvg /> New Playlist</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import SimpleTitle from "./SimpleTitle.vue";
|
||||
import PlusSvg from "../../../assets/icons/plus.svg";
|
||||
|
||||
import useModalStore from "@/stores/modal";
|
||||
const { showNewPlaylistModal } = useModalStore();
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.playlists-nav {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr max-content;
|
||||
|
||||
button {
|
||||
padding-right: $small;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user