owntone-server/web-src/src/components/IndexButtonList.vue

31 lines
581 B
Vue
Raw Normal View History

<template>
<section>
2024-09-08 22:01:04 +02:00
<nav class="buttons is-centered mb-4">
<router-link
2024-02-27 16:27:37 +01:00
v-for="index in indices"
:key="index"
2024-09-08 22:01:04 +02:00
class="button is-small is-square"
:to="{ hash: `#index_${index}`, query: $route.query }"
>
2024-04-21 17:44:55 +02:00
{{ index }}
</router-link>
</nav>
</section>
</template>
<script>
export default {
name: 'IndexButtonList',
2024-02-28 13:10:08 +01:00
props: { indices: { required: true, type: Array } }
}
</script>
2024-09-08 22:01:04 +02:00
<style scoped>
.is-square {
height: 1.75rem;
min-width: 1.75rem;
padding-left: 0.25rem;
padding-right: 0.25rem;
}
</style>