Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable3.7] fix: fix renaming mailbox hierarchy #10068

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/components/NavigationMailbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -610,23 +610,25 @@ export default {
},
async renameMailbox() {
this.renameInput = false
this.showSaving = false
this.showSaving = true

try {
let newName = this.mailboxName
if (this.mailbox.path) {
newName = this.mailbox.path + this.mailbox.delimiter + newName
}
await this.$store.dispatch('renameMailbox', {
account: this.account,
mailbox: this.mailbox,
newName: this.mailboxName,
newName,
})
this.renameLabel = true
this.renameInput = false
this.showSaving = false
} catch (error) {
showInfo(t('mail', 'An error occurred, unable to rename the mailbox.'))
console.error(error)
this.renameLabel = false
this.renameInput = false
this.showSaving = true
} finally {
this.showSaving = false
}
},
openRenameInput() {
Expand Down
Loading