mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
parent
60f89ffd3f
commit
30759e8112
|
@ -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>
|
||||
|
|
2
mailsync
2
mailsync
|
@ -1 +1 @@
|
|||
Subproject commit 7cf1aba7ee811b6097418661d86b933eccce635c
|
||||
Subproject commit 850c0bde48deb6756381ff44a94680602dc5ae84
|
Loading…
Reference in a new issue