Add alvinn mini settings

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-03-11 21:10:06 -07:00
parent 76a0cba2af
commit 6e35fcb141
9 changed files with 87 additions and 7 deletions

View File

@@ -31,14 +31,17 @@
abdomenDetails: { "version": "Model not available" },
limbsDetails: { "version": "Model not available" },
headneckDetails: { "version": "Model not available" },
alvinnVersion: store().getVersion
alvinnVersion: store().getVersion,
otherSettings: {}
}
},
setup() {
return store()
},
created () {
import('../models/thorax/descript.json')
var loadOtherSettings = localStorage.getItem('otherSettings')
if (loadOtherSettings) this.otherSettings = JSON.parse(loadOtherSettings)
import(`../models/thorax${this.otherSettings.mini ? '-mini' : ''}/descript.json`)
.then((mod) => {
this.thoraxDetails = mod.default
})