Skip to content

Commit

Permalink
[Content] Do not show edit template for datasets (#2870)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnar-bin authored Jul 23, 2024
1 parent e69736b commit 7398833
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/apps/content-editor/src/app/views/ItemList/ItemListActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,19 @@ export const ItemListActions = forwardRef((props, ref) => {
</ListItemIcon>
Edit Model
</MenuItem>
<MenuItem
data-cy="EditTemplateNavButton"
onClick={() => {
history.push(codePath);
}}
>
<ListItemIcon>
<CodeRounded />
</ListItemIcon>
Edit Template
</MenuItem>
{!isDataset && (
<MenuItem
data-cy="EditTemplateNavButton"
onClick={() => {
history.push(codePath);
}}
>
<ListItemIcon>
<CodeRounded />
</ListItemIcon>
Edit Template
</MenuItem>
)}
</Menu>
<Menu
anchorEl={showApiEndpoints}
Expand Down

0 comments on commit 7398833

Please sign in to comment.