Allow a folder to function as the Archive on O365 / IMAP #194, #185

This commit is contained in:
Ben Gotow 2017-10-18 21:50:35 -07:00
parent 60f89ffd3f
commit 30759e8112
2 changed files with 5 additions and 3 deletions

View file

@ -2,14 +2,13 @@ import {
AccountStore,
CategoryStore,
React,
Label,
Actions,
ChangeRoleMappingTask,
} from 'mailspring-exports';
import CategorySelection from './category-selection';
const SELECTABLE_ROLES = ['inbox', 'sent', 'drafts', 'spam', 'trash'];
const SELECTABLE_ROLES = ['inbox', 'sent', 'drafts', 'spam', 'archive', 'trash'];
export default class PreferencesCategoryMapper extends React.Component {
constructor() {
@ -56,6 +55,9 @@ export default class PreferencesCategoryMapper extends React.Component {
};
_renderRoleSection = (account, role) => {
if (account.provider === 'gmail' && role === 'archive') {
return false;
}
return (
<div className="role-section" key={`${account.id}-${role}`}>
<div className="col-left">{`${role[0].toUpperCase()}${role.substr(1)}`}:</div>

@ -1 +1 @@
Subproject commit 7cf1aba7ee811b6097418661d86b933eccce635c
Subproject commit 850c0bde48deb6756381ff44a94680602dc5ae84