File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
electron_app/src/components Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 16
16
<div @click =" toggle_order()" style =" float :right ; margin-bottom : 20px ;" class =" l_button" >
17
17
{{this.app_state.show_history_in_oldest_first ? "Oldest": "Newest"}} First
18
18
</div >
19
+ <div @click =" clear_history()" style =" float :right ; margin-bottom : 20px ;" class =" l_button" >
20
+ Clear History
21
+ </div >
19
22
<div v-if =" Object.values(app_state.app_data.history).length > 0" >
20
23
<div v-for =" history_box in get_history()" :key =" history_box.key" style =" clear : both ;" >
21
24
@@ -132,6 +135,10 @@ export default {
132
135
return r;
133
136
},
134
137
138
+ clear_history (){
139
+ Vue .set ( this .app_state .app_data , " history" , {});
140
+ },
141
+
135
142
share_on_arthub (box ){
136
143
this .app_state .global_loader_modal_msg = " Uploading" ;
137
144
let params = this .get_box_params_dict (box);
You can’t perform that action at this time.
0 commit comments