We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7692c4 commit 5392e6eCopy full SHA for 5392e6e
electron_app/src/components/History.vue
@@ -68,6 +68,7 @@
68
</template>
69
<script>
70
import ImageItem from '../components/ImageItem.vue'
71
+import {native_confirm} from "../native_functions_vue_bridge.js";
72
import {share_on_arthub} from '../utils.js'
73
74
import Vue from 'vue'
@@ -135,8 +136,10 @@ export default {
135
136
return r;
137
},
138
- clear_history(){
139
- Vue.set( this.app_state.app_data, "history", {});
+ clear_history(){
140
+ if (native_confirm("Are you sure you want to clear history?")){
141
+ Vue.set( this.app_state.app_data, "history", {});
142
+ }
143
144
145
share_on_arthub(box){
0 commit comments