diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index dd08c90c..e67f08c1 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -65,41 +65,47 @@
- -
+
- -
-
-
-
-
@@ -293,21 +274,21 @@
@@ -319,7 +300,8 @@ - @@ -357,8 +340,7 @@ -
{ this.$refs.toast.showToast("Selected personality:\n" + pers.personality.name, 4, true) - this.configFile.personalities[configFile.default_personality_id] = pers.personality.language+"/"+ pers.personality.category +"/" + pers.personality.name + this.configFile.personalities[configFile.default_personality_id] = pers.personality.language + "/" + pers.personality.category + "/" + pers.personality.name }) } nextTick(() => { @@ -933,18 +916,18 @@ export default { this.getPersonalitiesArr() this.fetchModels(); }, - extract_personality_parameters(){ - try{ + extract_personality_parameters() { + try { let parts = this.configFile.personalities[this.configFile.default_personality_id].split('/') this.configFile.personality_language = parts[0] this.configFile.personality_category = parts[1] - this.configFile.personality_folder = parts[2] + this.configFile.personality_folder = parts[2] // console.log(`p lang = ${this.configFile.personality_language }`) // console.log(`p cat = ${this.configFile.personality_category }`) // console.log(`p name = ${this.configFile.personality_folder }`) - }catch(error){ + } catch (error) { console.log(`Exception : ${error}`) } @@ -1174,7 +1157,7 @@ export default { this.isLoading = false this.diskUsage = await this.api_get_req("disk_usage") this.ramUsage = await this.api_get_req("ram_usage") - console.log('ran',this.ramUsage) + console.log('ran', this.ramUsage) this.isMounted = true }, @@ -1192,7 +1175,7 @@ export default { disk_total_space() { return this.computedFileSize(this.diskUsage.total_space) }, - ram_available_space() { + ram_available_space() { return this.computedFileSize(this.ramUsage.available_space) }, ram_usage() { @@ -1209,12 +1192,12 @@ export default { if (!this.isMounted) { return } - try{ + try { return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(item => item.binding.folder == this.configFile.binding_name)].$refs.imgElement.src } - catch(error){ + catch (error) { return defaultImgPlaceholder - } + } }, imgModel() { if (!this.isMounted) { @@ -1222,23 +1205,23 @@ export default { } // console.log("Config file") // console.log(this.configFile) - try{ + try { return this.$refs.modelZoo[this.$refs.modelZoo.findIndex(item => item.title == this.configFile.model_name)].$refs.imgElement.src } - catch(error){ + catch (error) { return defaultModelImgPlaceholder - } + } }, imgPersonality() { if (!this.isMounted) { return } - try{ + try { return this.$refs.personalitiesZoo[this.$refs.personalitiesZoo.findIndex(item => item.personality.folder == this.configFile.personality_folder)].$refs.imgElement.src } - catch(error){ + catch (error) { return defaultPersonalityImgPlaceholder - } + } }, }, @@ -1261,6 +1244,12 @@ export default { }) }, + sc_collapsed() { + nextTick(() => { + feather.replace() + + }) + }, showConfirmation() { nextTick(() => { feather.replace()