Move notifications tab over

This commit is contained in:
Nicholas Zuber 2018-11-10 23:48:13 -05:00
parent b27c4bc962
commit 2f91a93555

View File

@ -701,6 +701,28 @@ export default function Scene ({
onClick={!loading ? (() => onFetchNotifications()) : undefined}
/>
</EnhancedTab>
<EnhancedTab tooltip={!loading ? "Mark all as read" : null} disabled={loading}>
<Icon.DoneAll
opacity={0.9}
onClick={!loading ? (() => {
const response = window.confirm('Are you sure you want to mark all your notifications as read?');
if (response) {
onMarkAllAsStaged();
}
}) : undefined}
/>
</EnhancedTab>
<EnhancedTab tooltip={!loading ? "Delete all of your notifications from the cache" : null} disabled={loading}>
<Icon.Trash
opacity={0.9}
onClick={!loading ? (() => {
const response = window.confirm('Are you sure you want to clear the cache?');
if (response) {
onClearCache();
}
}) : undefined}
/>
</EnhancedTab>
<EnhancedTab
tooltip={!loading ? (
notificationsPermission === 'granted'
@ -724,28 +746,6 @@ export default function Scene ({
}) : undefined}
/>
</EnhancedTab>
<EnhancedTab tooltip={!loading ? "Mark all as read" : null} disabled={loading}>
<Icon.DoneAll
opacity={0.9}
onClick={!loading ? (() => {
const response = window.confirm('Are you sure you want to mark all your notifications as read?');
if (response) {
onMarkAllAsStaged();
}
}) : undefined}
/>
</EnhancedTab>
<EnhancedTab tooltip={!loading ? "Delete all of your notifications from the cache" : null} disabled={loading}>
<Icon.Trash
opacity={0.9}
onClick={!loading ? (() => {
const response = window.confirm('Are you sure you want to clear the cache?');
if (response) {
onClearCache();
}
}) : undefined}
/>
</EnhancedTab>
{query ? (
<React.Fragment>
<div style={{display: 'inline-block'}} className="button-container-alt">