mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-14 01:04:18 +08:00
fix(snooze): Do not display snooze buttons unless looking at inbox
This commit is contained in:
parent
a63bc9e4b0
commit
c5f112f846
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/** @babel */
|
||||
import React, {Component, PropTypes} from 'react';
|
||||
import {FocusedPerspectiveStore} from 'nylas-exports';
|
||||
import {RetinaImg} from 'nylas-component-kit';
|
||||
import SnoozePopover from './snooze-popover';
|
||||
|
||||
|
@ -25,6 +26,9 @@ export class BulkThreadSnooze extends Component {
|
|||
static containerRequired = false;
|
||||
|
||||
render() {
|
||||
if (!FocusedPerspectiveStore.current().isInbox()) {
|
||||
return <span />;
|
||||
}
|
||||
return (
|
||||
<SnoozePopover
|
||||
direction="down"
|
||||
|
@ -44,6 +48,9 @@ export class ToolbarSnooze extends Component {
|
|||
static containerRequired = false;
|
||||
|
||||
render() {
|
||||
if (!FocusedPerspectiveStore.current().isInbox()) {
|
||||
return <span />;
|
||||
}
|
||||
const pointerStyle = {
|
||||
right: 18,
|
||||
display: 'block',
|
||||
|
|
Loading…
Reference in a new issue