Skip to content

Commit

Permalink
➕ merge pull request #182 from devmount/fix-object-cloning
Browse files Browse the repository at this point in the history
Various fixes
  • Loading branch information
devmount authored Jul 25, 2023
2 parents 8351f51 + 17900f2 commit 57a0c0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/modals/SetlistSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
v-model="setlist.title"
:class="{ '!border-rose-600': (error.title & !setlist.title) || error.slug }"
:placeholder="t('placeholder.exampleSetlistTitle')"
:disabled="existing"
required
/>
<div v-if="error.title & !setlist.title" class="text-rose-600">
Expand Down Expand Up @@ -355,7 +354,7 @@ const setlistSongs = ref(null);
const initInput = () => {
resetErrors();
resetFilter();
const sl = props.initialSetlist;
const sl = {...props.initialSetlist};
// only show undeleted songs
sl.songs = sl.songs.filter(s => s.id in props.songs);
// init visibility state if not existing
Expand Down
9 changes: 8 additions & 1 deletion src/views/SetlistShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,14 @@
</td>
<td
class="cursor-pointer px-3 py-2 max-w-0 hidden 2xl:table-cell"
@click="router.push({ name: 'song-show', params: { id: element.id, key: element.tuning ? element.tuning : songs[element.id].tuning }})"
@click="router.push({
name: 'song-show',
params: {
id: element.id,
key: element.tuning ? element.tuning : songs[element.id].tuning,
setlist: setlistKey,
}
})"
>
<div class="truncate">{{ songs[element.id].authors }}</div>
</td>
Expand Down

0 comments on commit 57a0c0d

Please sign in to comment.