From b9b6b39bb89c8ec33d1826e344fc977e141450b8 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 9 Mar 2021 13:04:03 +0100 Subject: [PATCH] beginning implement add station modal functionality --- src/views/Categories.vue | 1 - src/views/Favorites.vue | 36 ++++++++++++++++++++++++------------ 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/views/Categories.vue b/src/views/Categories.vue index a48496a..566ce98 100644 --- a/src/views/Categories.vue +++ b/src/views/Categories.vue @@ -103,7 +103,6 @@ export default { }, mounted() { this.onRoute() - this.scroll() }, methods: { ...mapActions([ diff --git a/src/views/Favorites.vue b/src/views/Favorites.vue index f3c4d7b..2fc80b3 100644 --- a/src/views/Favorites.vue +++ b/src/views/Favorites.vue @@ -26,8 +26,8 @@ :station-data="stations" />
- - + + @@ -66,21 +66,33 @@

- Add custom station + {{ t('radio', 'Add custom station') }}

- - - - - - + + + + + +
@@ -132,6 +144,7 @@ export default { sidebarStation: {}, tableData: [], modal: true, + station: {}, }), computed: { ...mapGetters([ @@ -156,7 +169,6 @@ export default { }, mounted() { this.onRoute() - this.scroll() }, methods: { ...mapActions([ @@ -230,7 +242,7 @@ export default { }, addCustomStation() { - console.log('Add custom station') + console.log('Add custom station', this.station.name) // this.addFavorite(station) },