Commit d077cd21 authored by Andreas Heimann's avatar Andreas Heimann

added new pagination

parent a0cc69a4
...@@ -96,5 +96,8 @@ ...@@ -96,5 +96,8 @@
"contextmenu.download": "Download", "contextmenu.download": "Download",
"contextmenu.open": "Open", "contextmenu.open": "Open",
"contextmenu.openInExplorer": "Open in Explorer", "contextmenu.openInExplorer": "Open in Explorer",
"contextmenu.openOnSpinShare": "Open on SpinShare" "contextmenu.openOnSpinShare": "Open on SpinShare",
"songrow.navigation.previous": "PREVIOUS",
"songrow.navigation.next": "NEXT"
} }
\ No newline at end of file
<template> <template>
<SongRow <SongRow>
:title="$t('startup.hotsongs.header')">
<template v-slot:controls> <template v-slot:controls>
<div :class="'item ' + (hotSongsOffset == 0 ? 'disabled' : '')" v-on:click="hotPrevious()"><i class="mdi mdi-chevron-left"></i></div> <div :class="'button ' + (hotSongsOffset == 0 ? 'button-disabled' : '')" v-on:click="hotPrevious()"><i class="mdi mdi-chevron-left"></i> {{ $t('songrow.navigation.previous' )}}</div>
<div :class="'item ' + (hotSongs.length < 11 ? 'disabled' : '')" v-on:click="hotNext()"><i class="mdi mdi-chevron-right"></i></div> <div :class="'button ' + (hotSongs.length < 11 ? 'button-disabled' : '')" v-on:click="hotNext()">{{ $t('songrow.navigation.next' )}} <i class="mdi mdi-chevron-right"></i></div>
</template> </template>
<template v-slot:song-list> <template v-slot:song-list>
<SongItemPlaceholder <SongItemPlaceholder
......
<template> <template>
<SongRow <SongRow>
:title="$t('startup.newsongs.header')">
<template v-slot:controls> <template v-slot:controls>
<div :class="'item ' + (newSongsOffset == 0 ? 'disabled' : '')" v-on:click="newPrevious()"><i class="mdi mdi-chevron-left"></i></div> <div :class="'button ' + (newSongsOffset == 0 ? 'button-disabled' : '')" v-on:click="newPrevious()"><i class="mdi mdi-chevron-left"></i> {{ $t('songrow.navigation.previous' )}}</div>
<div :class="'item ' + (newSongs.length < 11 ? 'disabled' : '')" v-on:click="newNext()"><i class="mdi mdi-chevron-right"></i></div> <div :class="'button ' + (newSongs.length < 11 ? 'button-disabled' : '')" v-on:click="newNext()">{{ $t('songrow.navigation.next' )}} <i class="mdi mdi-chevron-right"></i></div>
</template> </template>
<template v-slot:song-list> <template v-slot:song-list>
<SongItemPlaceholder <SongItemPlaceholder
......
<template> <template>
<SongRow <SongRow>
:title="$t('startup.popularsongs.header')">
<template v-slot:controls> <template v-slot:controls>
<div :class="'item ' + (popularSongsOffset == 0 ? 'disabled' : '')" v-on:click="popularPrevious()"><i class="mdi mdi-chevron-left"></i></div> <div :class="'button ' + (popularSongsOffset == 0 ? 'button-disabled' : '')" v-on:click="popularPrevious()"><i class="mdi mdi-chevron-left"></i> {{ $t('songrow.navigation.previous' )}}</div>
<div :class="'item ' + (popularSongs.length < 11 ? 'disabled' : '')" v-on:click="popularNext()"><i class="mdi mdi-chevron-right"></i></div> <div :class="'button ' + (popularSongs.length < 11 ? 'button-disabled' : '')" v-on:click="popularNext()">{{ $t('songrow.navigation.next' )}} <i class="mdi mdi-chevron-right"></i></div>
</template> </template>
<template v-slot:song-list> <template v-slot:song-list>
<SongItemPlaceholder <SongItemPlaceholder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment