From 4bd595714c44a724f8d56cbe11499204c74dd596 Mon Sep 17 00:00:00 2001 From: AndzejsP Date: Fri, 9 Jun 2023 13:11:40 +0300 Subject: [PATCH] small fix --- web/src/views/SettingsView.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index d724fd5e..6b439029 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -960,21 +960,20 @@ export default { this.isLoading = true this.update_setting('binding_name', value, (res) => { - this.refresh(); + this.$refs.toast.showToast("Binding changed.", 4, true) this.settingsChanged = true this.isLoading = false - nextTick(() => { - feather.replace() - }) // If binding changes then reset model this.update_model(null) this.configFile.model_name = null - this.api_get_req("disk_usage").then(response => { - this.diskUsage = response + this.refresh(); + nextTick(() => { + feather.replace() + }) })