fix(style): [WIP] pagination in artist page
This commit is contained in:
parent
132e236750
commit
b552ca180f
|
@ -23,6 +23,7 @@ import Button from '~/components/ui/Button.vue'
|
||||||
import Input from '~/components/ui/Input.vue'
|
import Input from '~/components/ui/Input.vue'
|
||||||
import Toggle from '~/components/ui/Toggle.vue'
|
import Toggle from '~/components/ui/Toggle.vue'
|
||||||
import Alert from '~/components/ui/Alert.vue'
|
import Alert from '~/components/ui/Alert.vue'
|
||||||
|
import Spacer from '~/components/ui/layout/Spacer.vue'
|
||||||
|
|
||||||
import useSharedLabels from '~/composables/locale/useSharedLabels'
|
import useSharedLabels from '~/composables/locale/useSharedLabels'
|
||||||
import useOrdering from '~/composables/navigation/useOrdering'
|
import useOrdering from '~/composables/navigation/useOrdering'
|
||||||
|
@ -235,10 +236,10 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
|
||||||
</Layout>
|
</Layout>
|
||||||
<Spacer grow />
|
<Spacer grow />
|
||||||
<Pagination
|
<Pagination
|
||||||
v-model:current="page"
|
v-if="result && result.count != 0"
|
||||||
:paginate-by="paginateBy"
|
:paginate-by="paginateBy"
|
||||||
:page="page"
|
:page="page"
|
||||||
:pages="result?.results.count"
|
:pages="Math.ceil((result?.results.length || 0)/paginateBy)"
|
||||||
/>
|
/>
|
||||||
</Layout>
|
</Layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue