From 8b43a5d38e819c44fdd56fad41918ecf3fb295ec Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 1 Jan 2020 03:36:50 +0100 Subject: [PATCH] Fix: Disable save modal too when no auto-load is active Signed-off-by: Knut Ahlers --- cmd/sii-editor/frontend/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/sii-editor/frontend/app.js b/cmd/sii-editor/frontend/app.js index 3c8c40a..ab3894c 100644 --- a/cmd/sii-editor/frontend/app.js +++ b/cmd/sii-editor/frontend/app.js @@ -275,7 +275,6 @@ window.app = new Vue({ this.loadCompanies() this.saveLoading = true - this.showSaveModal = false return axios.get(`/api/profiles/${this.selectedProfile}/saves/${this.selectedSave}`) .then(resp => { this.save = resp.data @@ -300,6 +299,8 @@ window.app = new Vue({ this.socket.onclose = () => window.setTimeout(this.loadSaves, 1000) // Restart socket this.socket.onmessage = evt => { this.saves = JSON.parse(evt.data) + this.showSaveModal = false + if (this.autoLoad) { this.loadNewestSave() }