Skip to content
Snippets Groups Projects
Unverified Commit c275a4cd authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #4207 from nextcloud/enhacement/all_inbox_more_than_one_account

Remove "All inboxes" if one account is setup
parents 8162b3c8 e79bb37a
No related branches found
No related tags found
No related merge requests found
......@@ -204,8 +204,8 @@ export default {
computed: {
visible() {
return (
this.account.showSubscribedOnly === false
|| (this.mailbox.attributes && this.mailbox.attributes.includes('\\subscribed'))
(this.account.showSubscribedOnly === false
|| (this.mailbox.attributes && this.mailbox.attributes.includes('\\subscribed'))) && this.isUnifiedButOnlyInbox
)
},
notInbox() {
......@@ -289,6 +289,12 @@ export default {
}
return this.isDroppableSpecialMailbox || (!this.mailbox.specialRole && !this.account.isUnified)
},
isUnifiedButOnlyInbox() {
if (!this.mailbox.isUnified) {
return true
}
return this.mailbox.specialUse.includes('inbox') && this.$store.getters.accounts.length > 2
},
},
mounted() {
dragEventBus.$on('dragStart', this.onDragStart)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment