Skip to content

Commit 85c00fd

Browse files
author
Ian Seabock (Centific Technologies Inc)
committed
logical check for show_history_button
1 parent ed69379 commit 85c00fd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

frontend/src/pages/layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const Layout = () => {
7777
</Link>
7878
</Stack>
7979
<Stack horizontal tokens={{ childrenGap: 4 }} className={styles.shareButtonContainer}>
80-
{appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && (
80+
{appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && ui?.show_chat_history_button !== false && (
8181
<HistoryButton
8282
onClick={handleHistoryClick}
8383
text={appStateContext?.state?.isChatHistoryOpen ? hideHistoryLabel : showHistoryLabel}

0 commit comments

Comments
 (0)