Skip to content

Commit

Permalink
open ctd editor on new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed Mar 13, 2024
1 parent 0f04c35 commit 0e8f8d7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions apps/sensenet/src/components/view-controls/common/view-title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,15 @@ export const ViewTitle: React.FunctionComponent<ViewTitleProps> = (props) => {
title={`Open ${contentDisplayName} CTD`}
onClick={async () => {
const content = await getContentTypeId(props.content!.Type)
history.push(
getPrimaryActionUrl({
content,
repository,
location: history.location,
uiSettings,
snRoute,
removePath: true,
}),
)
const url = getPrimaryActionUrl({
content,
repository,
location: history.location,
uiSettings,
snRoute,
removePath: true,
})
window.open(url, '_blank')
}}
className={globalClasses.centered}>
<Icon
Expand Down

0 comments on commit 0e8f8d7

Please sign in to comment.