delete prompt ui change

This commit is contained in:
sanjayk03-dev
2024-05-31 14:41:35 +05:30
parent 0f3b241c1f
commit b3692d2239
3 changed files with 48 additions and 7 deletions

View File

@@ -55,6 +55,8 @@ module.exports = {
totalFiles: 0,
files_sortby: "By Upload Date",
selected_items_to_delete: [],
search_query: "",
filtered_files: [],
};
},
@@ -230,6 +232,9 @@ module.exports = {
return files;
}
},
gcode_filtered_files: function () {
return this.filtered_files.filter(file => file.toLowerCase().includes(this.search_query.toLowerCase()));
},
gcode_folders: function () {
return this.state.gcode_list
.map(item => item.name)
@@ -289,6 +294,11 @@ module.exports = {
alert("Restore failed");
}
},
populateFiles(index) {
this.filtered_files = this.state.gcode_list[index].files.map(item => item.file_name);
},
getJogIncrStyle(value) {
const weight = `font-weight:${this.jog_incr === value ? "bold" : "normal"}`;
const color = this.jog_incr === value ? "color:#0078e7" : "";