1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00

Fix: Disable save modal too when no auto-load is active

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-01 03:36:50 +01:00
parent bbbce2b2a3
commit 8b43a5d38e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -275,7 +275,6 @@ window.app = new Vue({
this.loadCompanies() this.loadCompanies()
this.saveLoading = true this.saveLoading = true
this.showSaveModal = false
return axios.get(`/api/profiles/${this.selectedProfile}/saves/${this.selectedSave}`) return axios.get(`/api/profiles/${this.selectedProfile}/saves/${this.selectedSave}`)
.then(resp => { .then(resp => {
this.save = resp.data this.save = resp.data
@ -300,6 +299,8 @@ window.app = new Vue({
this.socket.onclose = () => window.setTimeout(this.loadSaves, 1000) // Restart socket this.socket.onclose = () => window.setTimeout(this.loadSaves, 1000) // Restart socket
this.socket.onmessage = evt => { this.socket.onmessage = evt => {
this.saves = JSON.parse(evt.data) this.saves = JSON.parse(evt.data)
this.showSaveModal = false
if (this.autoLoad) { if (this.autoLoad) {
this.loadNewestSave() this.loadNewestSave()
} }