[web] Simplify pages

This commit is contained in:
Alain Nussbaumer
2025-03-18 21:54:27 +01:00
parent 15e8854349
commit be44c0ce9f
38 changed files with 1353 additions and 1457 deletions

View File

@@ -1,33 +1,31 @@
<template>
<div>
<content-with-heading>
<template #heading>
<heading-title :content="heading" />
</template>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>
<control-button
:button="{
handler: play,
icon: 'shuffle',
key: 'actions.shuffle'
}"
:disabled="tracks.count === 0"
/>
</template>
<template #content>
<list-tracks :items="tracks" :uris="uris" />
<modal-dialog-playlist
:item="playlist"
:show="showDetailsModal"
:uris="uris"
@close="showDetailsModal = false"
/>
</template>
</content-with-heading>
</div>
<content-with-heading>
<template #heading>
<heading-title :content="heading" />
</template>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>
<control-button
:button="{
handler: play,
icon: 'shuffle',
key: 'actions.shuffle'
}"
:disabled="tracks.count === 0"
/>
</template>
<template #content>
<list-tracks :items="tracks" :uris="uris" />
</template>
</content-with-heading>
<modal-dialog-playlist
:item="playlist"
:show="showDetailsModal"
:uris="uris"
@close="showDetailsModal = false"
/>
</template>
<script>