Skip to content

Commit 19094cf

Browse files
committed
add clear history button
1 parent edb65cb commit 19094cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

electron_app/src/components/History.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<div @click="toggle_order()" style="float:right; margin-bottom: 20px;" class="l_button">
1717
{{this.app_state.show_history_in_oldest_first ? "Oldest": "Newest"}} First
1818
</div>
19+
<div @click="clear_history()" style="float:right; margin-bottom: 20px;" class="l_button">
20+
Clear History
21+
</div>
1922
<div v-if="Object.values(app_state.app_data.history).length > 0">
2023
<div v-for="history_box in get_history()" :key="history_box.key" style="clear: both;">
2124

@@ -132,6 +135,10 @@ export default {
132135
return r;
133136
},
134137
138+
clear_history(){
139+
Vue.set( this.app_state.app_data, "history", {});
140+
},
141+
135142
share_on_arthub(box){
136143
this.app_state.global_loader_modal_msg = "Uploading";
137144
let params = this.get_box_params_dict(box);

0 commit comments

Comments
 (0)