Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

clean unused code

Wu Baiyang (Student)98db5609ec17
diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue
index 4d41f441..de4ed918 100644
--- a/src/components/Settings/SettingsContainer.vue
+++ b/src/components/Settings/SettingsContainer.vue
@@ -97,21 +97,6 @@ export default {
this.settingsVisible = this.getSettingsVisibility();
},
methods: {
- // Toggle the disableWebSearch setting
- toggleDisableWebSearch(event) {
- const value = event.target.checked;
- // Clone appConfig to avoid direct mutation
- const newAppConfig = {
- ...this.appConfig,
- webSearch: {
- ...this.appConfig.webSearch,
- disableWebSearch: value,
- },
- };
- this.$store.commit('setDisableWebSearch', value);
- // Optionally update the full appConfig in store for reactivity
- this.$store.commit('SET_APP_CONFIG', newAppConfig);
- },
/* Emit event to begin/ continue searching */
userIsTypingSomething(something) {
this.$emit('user-is-searchin', something);