Skip to content

Commit 57a0c0d

Browse files
authored
➕ merge pull request #182 from devmount/fix-object-cloning
Various fixes
2 parents 8351f51 + 17900f2 commit 57a0c0d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/modals/SetlistSet.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
v-model="setlist.title"
1616
:class="{ '!border-rose-600': (error.title & !setlist.title) || error.slug }"
1717
:placeholder="t('placeholder.exampleSetlistTitle')"
18-
:disabled="existing"
1918
required
2019
/>
2120
<div v-if="error.title & !setlist.title" class="text-rose-600">
@@ -355,7 +354,7 @@ const setlistSongs = ref(null);
355354
const initInput = () => {
356355
resetErrors();
357356
resetFilter();
358-
const sl = props.initialSetlist;
357+
const sl = {...props.initialSetlist};
359358
// only show undeleted songs
360359
sl.songs = sl.songs.filter(s => s.id in props.songs);
361360
// init visibility state if not existing

src/views/SetlistShow.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,14 @@
259259
</td>
260260
<td
261261
class="cursor-pointer px-3 py-2 max-w-0 hidden 2xl:table-cell"
262-
@click="router.push({ name: 'song-show', params: { id: element.id, key: element.tuning ? element.tuning : songs[element.id].tuning }})"
262+
@click="router.push({
263+
name: 'song-show',
264+
params: {
265+
id: element.id,
266+
key: element.tuning ? element.tuning : songs[element.id].tuning,
267+
setlist: setlistKey,
268+
}
269+
})"
263270
>
264271
<div class="truncate">{{ songs[element.id].authors }}</div>
265272
</td>

0 commit comments

Comments
 (0)