Salvataggio modifiche correnti prima di implementare condivisione canto

This commit is contained in:
David Frassi
2026-06-16 16:14:20 +02:00
parent 1b6e8a1832
commit 2d23dcae83
13 changed files with 401 additions and 69 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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;
+7 -1
View File
@@ -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!',