Salvataggio modifiche correnti prima di implementare condivisione canto
This commit is contained in:
@@ -203,7 +203,7 @@
|
||||
<!-- Instructions when playlist is empty -->
|
||||
<div class="empty-playlist-container" *ngIf="activeFilterType() === 'playlist' && playlistService.allPlaylists().length === 0 && !playlistService.selectionMode()">
|
||||
<p class="empty-playlist-instruction outfit-font">
|
||||
Per creare una playlist, seleziona il nr dei canti che vuoi inserire nella playlist, riordinali e salvala con nome
|
||||
Per creare una playlist, seleziona il nr del canto che vuoi inserire nella playlist, riordinali e salvala con nome
|
||||
</p>
|
||||
</div>
|
||||
</ion-toolbar>
|
||||
|
||||
@@ -1318,7 +1318,7 @@ ion-title {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.4;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
background: rgba(var(--ion-color-secondary-rgb), 0.08);
|
||||
border: 1px dashed rgba(var(--ion-color-secondary-rgb), 0.35);
|
||||
padding: 12px 16px;
|
||||
|
||||
@@ -1146,6 +1146,9 @@ export class HomePage implements OnDestroy {
|
||||
|
||||
toggleSuggeriti() {
|
||||
this.showSuggeriti.update(v => !v);
|
||||
if (this.showSuggeriti()) {
|
||||
this.isMassCardExpanded.set(true);
|
||||
}
|
||||
this.activeFilterType.set(null);
|
||||
this.limit.set(30);
|
||||
}
|
||||
@@ -1481,7 +1484,10 @@ export class HomePage implements OnDestroy {
|
||||
handler: async (data) => {
|
||||
if (data.name) {
|
||||
const ids = this.reorderList().map(s => s.id);
|
||||
await this.playlistService.savePlaylist(data.name, ids);
|
||||
const activeId = this.playlistService.activePlaylistId();
|
||||
const pl = activeId ? this.playlistService.playlists().find(p => p.id === activeId) : null;
|
||||
const songSettings = pl ? pl.songSettings : undefined;
|
||||
await this.playlistService.savePlaylist(data.name, ids, songSettings);
|
||||
|
||||
const toast = await this.toastCtrl.create({
|
||||
message: 'Playlist salvata!',
|
||||
|
||||
Reference in New Issue
Block a user