Skip to content

Commit

Permalink
fixup! UI-fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <[email protected]>
  • Loading branch information
hamza221 committed Sep 17, 2024
1 parent ceb4002 commit a3cc9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/mailFilter/MailFilterUpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<NcButton type="primary"
native-type="submit"
@click="updateFilter">
@click.prevent.stop="updateFilter">
<template #icon>
<NcLoadingIcon v-if="loading" :size="16" />
<IconCheck v-else :size="16" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/mailFilter/MailFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default {
priority,
}
this.showUpdateModal = true
this.loading = false
},
openUpdateModal(filter) {
this.currentFilter = filter
Expand All @@ -134,7 +135,6 @@ export default {
},
async updateFilter(filter) {
this.loading = true
this.mailFilterStore.$patch((state) => {
const index = state.filters.findIndex((item) => item.id === filter.id)
logger.debug('update filter', { filter, index })
Expand Down

0 comments on commit a3cc9f5

Please sign in to comment.