From 4362fa270caca493a51705e0a17c41af56d0fa18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 5 Nov 2019 23:52:54 +0100 Subject: [PATCH] :hammer: ensure one-way data flow for edit/new song --- src/App.vue | 2 +- src/components/SongSet.vue | 8 +++++--- src/views/SongShow.vue | 9 ++++++--- src/views/Songs.vue | 16 ++++++++++++++-- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index c58c46d0..c4bda9b4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -67,7 +67,7 @@ v-if="modal.addsong" :active="modal.addsong" :existing="false" - :song="newSong" + :initialSong="newSong" @closed="modal.addsong = false" @reset="resetSong" /> diff --git a/src/components/SongSet.vue b/src/components/SongSet.vue index 3563a471..26786311 100644 --- a/src/components/SongSet.vue +++ b/src/components/SongSet.vue @@ -3,7 +3,7 @@