Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const QueryTileItem = ({ tile }: { tile: QueryTile }): JSX.Element => {
Open as new insight
</LemonButton>
) : null,
tile.canOpenModal ? (
tile.canOpenModal !== false ? (
<LemonButton
key="open-modal-button"
onClick={() => openModal(tile.tileId)}
Expand Down Expand Up @@ -307,7 +307,7 @@ export const WebTabs = ({
Open as new Insight
</LemonButton>
) : null,
activeTab?.canOpenModal ? (
activeTab?.canOpenModal !== false ? (
<LemonButton
key="open-modal-button"
onClick={() => openModal(tileId, activeTabId)}
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
showIntervalSelect: true,
insightProps: createInsightProps(TileId.GRAPHS, id),
canOpenInsight: !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_OPEN_AS_INSIGHT],
canOpenModal: true,
})

const createTableTab = (
Expand Down Expand Up @@ -1096,7 +1097,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
hideTooltipOnScroll: true,
},
canOpenInsight: !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_OPEN_AS_INSIGHT],
canOpenModal: false,
canOpenModal: true,
}
}

Expand Down Expand Up @@ -1124,7 +1125,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
columns,
},
canOpenInsight: !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_OPEN_AS_INSIGHT],
canOpenModal: false,
canOpenModal: true,
}
}

Expand Down Expand Up @@ -1240,6 +1241,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
},
insightProps: createInsightProps(TileId.OVERVIEW),
canOpenInsight: !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_OPEN_AS_INSIGHT],
canOpenModal: false,
},
{
kind: 'tabs',
Expand Down
Loading