mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-20 16:11:17 +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.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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue