Skip to content

Commit

Permalink
Hide syncTriggerCallout for custom sources
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger committed Oct 13, 2021
1 parent e287b7e commit aa31462
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const Overview: React.FC = () => {
const [isModalVisible, setIsModalVisible] = useState(false);
const closeModal = () => setIsModalVisible(false);
const handleSyncClick = () => setIsModalVisible(true);
const showSyncTriggerCallout = !custom && isIndexedSource && isOrganization;

const onSyncConfirm = () => {
initializeSourceSynchronization(id);
Expand Down Expand Up @@ -586,7 +587,7 @@ export const Overview: React.FC = () => {
)}
</>
)}
{isIndexedSource && isOrganization && syncTriggerCallout}
{showSyncTriggerCallout && syncTriggerCallout}
</EuiFlexGroup>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit aa31462

Please sign in to comment.