This commit is contained in:
sanjayk03-dev
2024-05-31 16:58:17 +05:30
parent 99c833a106
commit f50ccd3192
3 changed files with 6 additions and 0 deletions

View File

@@ -652,6 +652,7 @@ module.exports = {
await api.delete(`file/DINCAIQABiDARixAxiABDIHCAMQABiABDIHCAQQABiABDIH${files_to_delete.toString()}`);
this.save_config(this.config);
this.filtered_files = [];
this.selected_items_to_delete = [];
this.deleteGCode = false;
},

View File

@@ -326,8 +326,10 @@ script#control-view-template(type="text/x-template")
input.search-bar(type="text" v-model="search_query" placeholder="Search Files...")
.container
.folders
h3 Folders
div(v-for="(index, folder) in state.gcode_list" :key="index" @click="populateFiles(index)" class="folder-item") {{ folder.name }}
.files
h3 Files
label.file-item(v-for="item in gcode_filtered_files" :key="item")
input(type="checkbox" :value="item" v-model="selected_items_to_delete")
| {{ item }}

View File

@@ -301,6 +301,8 @@ span.unit
.container
display flex
width 100%
height 500px
margin-bottom 30px
.folders
width 30%
@@ -311,6 +313,7 @@ span.unit
.files
width 70%
padding 10px
display grid
overflow-y auto
.search-bar