From 9a5e3520d35ce01ffcb07695deffbaa7feeaadfd Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 8 Mar 2021 15:53:12 +0100 Subject: [PATCH] add new station modal --- src/views/Favorites.vue | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/views/Favorites.vue b/src/views/Favorites.vue index b64acba..e4fa44a 100644 --- a/src/views/Favorites.vue +++ b/src/views/Favorites.vue @@ -31,10 +31,16 @@ - + Add station - + Export favorites @@ -57,6 +63,11 @@ {{ emptyContentDesc }} + + + ({ pageLoading: false, @@ -101,6 +114,7 @@ export default { showSidebar: false, sidebarStation: {}, tableData: [], + modal: false, }), computed: { ...mapGetters([ @@ -190,6 +204,14 @@ export default { } }, + showModal() { + this.modal = true + }, + + closeModal() { + this.modal = false + }, + }, } @@ -215,6 +237,12 @@ export default { display: none; } +.modal__content { + width: 50vw; + text-align: center; + margin: 10vw 0; +} + @media only screen and (max-width: 1024px) { .app-navigation-toggle { display: block;