|
9 | 9 |
|
10 | 10 | <template> |
11 | 11 | <b-container fluid class="song-container h-100" @contextmenu="onGeneralContextMenu"> |
12 | | - <transition |
13 | | - name="custom-classes-transition" |
| 12 | + <transition name="custom-classes-transition" |
14 | 13 | enter-active-class="animate__animated animate__slideInLeft animate__delay-1s animate__slideInLeft_delay" |
15 | | - leave-active-class="animate__animated animate__slideOutRight animate__slideOutRight_faster" |
16 | | - > |
17 | | - <SongViewCompact |
18 | | - v-if="songView === 'SongViewCompact'" |
19 | | - :songList="filteredSongList" |
20 | | - :currentSong="currentSong" |
21 | | - :defaultDetails="defaultDetails" |
22 | | - :detailsButtonGroup="detailsButtonGroup" |
23 | | - :optionalProviders="optionalProviders" |
24 | | - :isLoading="isLoading" |
25 | | - @onItemsChanged="onOptionalProviderChanged" |
26 | | - @onRowDoubleClicked="(song: Song) => queueSong([song])" |
27 | | - @onRowContext="onSongContextMenu" |
28 | | - @onRowSelected="updateCoverDetails" |
29 | | - @onRowSelectionClear="clearSelection" |
30 | | - @onRowPlayNowClicked="(song: Song) => playTop([song])" |
31 | | - @onArtistClicked="gotoArtist" |
32 | | - @onAlbumClicked="gotoAlbum" |
33 | | - @playAll="playAll" |
34 | | - @addToQueue="addToQueue" |
35 | | - @addToLibrary="addToLibrary" |
36 | | - @onSortClicked="showSortMenu" |
37 | | - @onSearchChange="onSearchChange" |
38 | | - @playRandom="playRandom" |
39 | | - @fetchAll="fetchAll" |
40 | | - @onScrollEnd="onScrollEnd" |
41 | | - ></SongViewCompact> |
42 | | - |
43 | | - <SongViewClassic |
44 | | - v-else |
45 | | - :songList="filteredSongList" |
46 | | - :currentSong="currentSong" |
47 | | - :defaultDetails="defaultDetails" |
48 | | - :detailsButtonGroup="detailsButtonGroup" |
49 | | - :optionalProviders="optionalProviders" |
50 | | - :isLoading="isLoading" |
51 | | - @onItemsChanged="onOptionalProviderChanged" |
52 | | - @onRowDoubleClicked="(song: Song) => queueSong([song])" |
53 | | - @onRowContext="onSongContextMenu" |
54 | | - @onRowSelected="updateCoverDetails" |
55 | | - @onRowSelectionClear="clearSelection" |
56 | | - @onRowPlayNowClicked="(song: Song) => playTop([song])" |
57 | | - @onArtistClicked="gotoArtist" |
58 | | - @onAlbumClicked="gotoAlbum" |
59 | | - @playAll="playAll" |
60 | | - @addToQueue="addToQueue" |
61 | | - @addToLibrary="addToLibrary" |
62 | | - @onSortClicked="showSortMenu" |
63 | | - @onSearchChange="onSearchChange" |
64 | | - @playRandom="playRandom" |
65 | | - @fetchAll="fetchAll" |
66 | | - @onScrollEnd="onScrollEnd" |
67 | | - ></SongViewClassic> |
| 14 | + leave-active-class="animate__animated animate__slideOutRight animate__slideOutRight_faster"> |
| 15 | + <SongViewCompact v-if="songView === 'SongViewCompact'" :songList="filteredSongList" :currentSong="currentSong" |
| 16 | + :defaultDetails="defaultDetails" :detailsButtonGroup="detailsButtonGroup" :optionalProviders="optionalProviders" |
| 17 | + :isLoading="isLoading" @onItemsChanged="onOptionalProviderChanged" |
| 18 | + @onRowDoubleClicked="(song: Song) => queueSong([song])" @onRowContext="onSongContextMenu" |
| 19 | + @onRowSelected="updateCoverDetails" @onRowSelectionClear="clearSelection" |
| 20 | + @onRowPlayNowClicked="(song: Song) => playTop([song])" @onArtistClicked="gotoArtist" @onAlbumClicked="gotoAlbum" |
| 21 | + @playAll="playAll" @addToQueue="addToQueue" @addToLibrary="addToLibrary" @onSortClicked="showSortMenu" |
| 22 | + @onSearchChange="onSearchChange" @playRandom="playRandom" @fetchAll="fetchAll" @onScrollEnd="onScrollEnd"> |
| 23 | + </SongViewCompact> |
| 24 | + |
| 25 | + <SongViewClassic v-else :songList="filteredSongList" :currentSong="currentSong" :defaultDetails="defaultDetails" |
| 26 | + :detailsButtonGroup="detailsButtonGroup" :optionalProviders="optionalProviders" :isLoading="isLoading" |
| 27 | + @onItemsChanged="onOptionalProviderChanged" @onRowDoubleClicked="(song: Song) => queueSong([song])" |
| 28 | + @onRowContext="onSongContextMenu" @onRowSelected="updateCoverDetails" @onRowSelectionClear="clearSelection" |
| 29 | + @onRowPlayNowClicked="(song: Song) => playTop([song])" @onArtistClicked="gotoArtist" @onAlbumClicked="gotoAlbum" |
| 30 | + @playAll="playAll" @addToQueue="addToQueue" @addToLibrary="addToLibrary" @onSortClicked="showSortMenu" |
| 31 | + @onSearchChange="onSearchChange" @playRandom="playRandom" @fetchAll="fetchAll" @onScrollEnd="onScrollEnd"> |
| 32 | + </SongViewClassic> |
68 | 33 | </transition> |
69 | 34 | </b-container> |
70 | 35 | </template> |
|
0 commit comments