diff --git a/src/components/panels/Settings/ConfigFilesPanel.vue b/src/components/panels/Settings/ConfigFilesPanel.vue
index 059d2f78..76ac1f35 100644
--- a/src/components/panels/Settings/ConfigFilesPanel.vue
+++ b/src/components/panels/Settings/ConfigFilesPanel.vue
@@ -36,6 +36,16 @@
mdi-file-plus
mdi-folder-plus
mdi-refresh
+
+
+ mdi-cog
+
+
+
+
+
+
+
Current path: {{ this.currentPath === "" ? "/" : this.currentPath }}
@@ -250,6 +260,14 @@
return this.$store.dispatch("gui/setSettings", { settings: { configfiles: { countPerPage: newVal } } });
}
},
+ showHiddenFiles: {
+ get: function() {
+ return this.$store.state.gui.settings.configfiles.showHiddenFiles
+ },
+ set: function(newVal) {
+ return this.$store.dispatch("gui/setSettings", { settings: { configfiles: { showHiddenFiles: newVal } } })
+ }
+ },
},
created() {
this.loadPath();
@@ -321,6 +339,10 @@
if (dirArray.length === 1 && this.currentPath === "") {
this.files = this.files.filter(element => element.filename !== "gcodes");
}
+
+ if (!this.showHiddenFiles) {
+ this.files = this.files.filter(file => file.filename.substr(0, 1) !== ".");
+ }
},
clickRow: function(item) {
if (!item.isDirectory) {
@@ -485,10 +507,21 @@
this.loadPath();
}
},
+ filetree: {
+ deep: true,
+ handler() {
+ this.loadPath();
+ }
+ },
currentPath: {
handler() {
this.loadPath();
}
+ },
+ showHiddenFiles: {
+ handler() {
+ this.loadPath();
+ }
}
}
}
diff --git a/src/store/gui/index.js b/src/store/gui/index.js
index 669f0d38..39f4e996 100644
--- a/src/store/gui/index.js
+++ b/src/store/gui/index.js
@@ -38,6 +38,7 @@ export function getDefaultState() {
settings: {
configfiles: {
countPerPage: 10,
+ showHiddenFiles: false,
}
}
}