diff --git a/src/actions/index.js b/src/actions/index.js index 101af985..661dd341 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -15,6 +15,7 @@ import { GET_PARENT_FOLDER_DATA, GET_PAGE, GET_SPARQL_DATA, + GET_CONTENT_TYPE, } from '~/constants/ActionTypes'; export function setSectionTabs(payload) { @@ -55,3 +56,13 @@ export function getSparqlData(path) { }, }; } + +export function getContentType(type) { + return { + type: GET_CONTENT_TYPE, + request: { + op: 'get', + path: `@types/${type}`, + }, + }; +} diff --git a/src/components/manage/Blocks/DetailedLink/View.jsx b/src/components/manage/Blocks/DetailedLink/View.jsx index 3cb4d5ec..29c10b71 100644 --- a/src/components/manage/Blocks/DetailedLink/View.jsx +++ b/src/components/manage/Blocks/DetailedLink/View.jsx @@ -34,7 +34,6 @@ const View = (props) => { descriptionClassname = '', buttonClassname = '', } = props.data; - return (
- {description || detailedLink?.description || ''} -
- ) : ( - '' - )} -- Select a page from sidebar -
- )} + ) : ( + '' + )} + {!hideDescription && (description || detailedLink?.description) ? ( ++ {description || detailedLink?.description || ''} +
+ ) : ( + '' + )} +Select a page from sidebar
+ )}