Skip to content

Commit

Permalink
Delete onclear method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoYangyang0403 committed Jun 27, 2023
1 parent 9463f60 commit e640dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions frontend/src/components/BugTemplateSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ export default {
onDelete () {
this.$store.dispatch('deleteCache', this.selectedCache)
this.isShownDeleteModal = false
},
onClear () {
this.$store.commit('setSelectedCache', '')
this.$store.dispatch('loadTemplate')
}
},
computed: {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/store/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ export default {
commit('setSubmitLock', false)
}).catch(error => {
bus.$emit('msg.error', 'Submit failed error: ' + error.message)
commit('setSubmitLock', false)
})
},
loadAttachment ({ state, commit }) {
Expand Down Expand Up @@ -364,7 +365,7 @@ export default {
.then(response => {
if (response.data.code === 1000) {
bus.$emit('msg.success', 'Delete success!')
commit('setSelectedCache', '')
commit('setSelectedCache', null)
dispatch('loadCacheList')
dispatch('loadTemplate')
} else {
Expand Down

0 comments on commit e640dc7

Please sign in to comment.