From fb8c3b1824740147c4d770dbd4427ab7c52c9363 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sun, 17 Sep 2023 17:24:59 +0200 Subject: [PATCH] small changes --- src/webapp/main/src/components/seatplan/editor/window.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/webapp/main/src/components/seatplan/editor/window.vue b/src/webapp/main/src/components/seatplan/editor/window.vue index 1361ff4..254c901 100644 --- a/src/webapp/main/src/components/seatplan/editor/window.vue +++ b/src/webapp/main/src/components/seatplan/editor/window.vue @@ -330,8 +330,7 @@ }; fetch( localStorage.getItem( 'url' ) + '/admin/api/saveSeatplanDraft', options ).then( res => { if ( res.status === 200 ) { - res.text().then( text => { - console.log( text ); + res.text().then( () => { this.$refs.notification.cancelNotification( progressNotification ); this.$refs.notification.createNotification( 'Saved as draft', 5, 'ok', 'normal' ); } ); @@ -343,6 +342,7 @@ // TODO: add warning if no component has a seat start point if any component is a seat component }, deploy () { + this.getSeatCount(); let deployNotification = this.$refs.notification.createNotification( 'Deploying...', 5, 'progress', 'normal' ); const options = { method: 'post', @@ -354,8 +354,7 @@ }; fetch( localStorage.getItem( 'url' ) + '/admin/api/saveSeatplan', options ).then( res => { if ( res.status === 200 ) { - res.text().then( text => { - console.log( text ); + res.text().then( () => { this.$refs.notification.cancelNotification( deployNotification ); this.$refs.notification.createNotification( 'Deployed successfully', 5, 'ok', 'normal' ); } );