Skip to content

Commit

Permalink
Show sync button in nav for cloud storage only
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Apr 20, 2020
1 parent 0afcb56 commit c833466
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/molecules/StorageNavigatorFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,14 @@ const StorageNavigatorFragment = ({
onContextMenu={openContextMenu}
control={
<>
<NavigatorButton
active={syncing}
onClick={syncThisStorage}
iconPath={mdiSync}
spin={syncing}
/>
{storage.cloudStorage != null && (
<NavigatorButton
active={syncing}
onClick={syncThisStorage}
iconPath={mdiSync}
spin={syncing}
/>
)}
<NavigatorButton
onClick={() => push(`/app/storages/${storage.id}/settings`)}
iconPath={mdiTuneVertical}
Expand Down

0 comments on commit c833466

Please sign in to comment.