mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-30 04:11:15 +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:
parent
bbbce2b2a3
commit
8b43a5d38e
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue