mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
[web] Simplify pages
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user