mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 02:46:09 +00:00
Fix(UI)#8659: Fixed issue with wrong link for custom attributes in activity feed (#8668)
* Fixed issue with wrong link for custom attributes in activity feed * Function to get customAttributes path removed and used already existing function
This commit is contained in:
parent
5972570f61
commit
072e190dd3
@ -458,13 +458,6 @@ export const getAddCustomPropertyPath = (entityTypeFQN: string) => {
|
||||
return path;
|
||||
};
|
||||
|
||||
export const getCustomEntityPath = (entityTypeFQN: string) => {
|
||||
let path = ROUTES.CUSTOM_ENTITY_DETAIL;
|
||||
path = path.replace(PLACEHOLDER_ENTITY_TYPE_FQN, entityTypeFQN);
|
||||
|
||||
return path;
|
||||
};
|
||||
|
||||
export const getCreateUserPath = (bot: boolean) => {
|
||||
let path = bot ? ROUTES.CREATE_USER_WITH_BOT : ROUTES.CREATE_USER;
|
||||
|
||||
|
@ -23,7 +23,6 @@ import { ReactComponent as TopicIcon } from '../assets/svg/topic-grey.svg';
|
||||
import PopOver from '../components/common/popover/PopOver';
|
||||
import { FQN_SEPARATOR_CHAR } from '../constants/char.constants';
|
||||
import {
|
||||
getCustomEntityPath,
|
||||
getDashboardDetailsPath,
|
||||
getDatabaseDetailsPath,
|
||||
getDatabaseSchemaDetailsPath,
|
||||
@ -34,6 +33,7 @@ import {
|
||||
getTableDetailsPath,
|
||||
getTopicDetailsPath,
|
||||
} from '../constants/constants';
|
||||
import { GlobalSettingsMenuCategory } from '../constants/globalSettings.constants';
|
||||
import { EntityType, FqnPart } from '../enums/entity.enum';
|
||||
import { SearchIndex } from '../enums/search.enum';
|
||||
import { ConstraintTypes, PrimaryTableDataTypes } from '../enums/table.enum';
|
||||
@ -44,7 +44,7 @@ import {
|
||||
getPartialNameFromTableFQN,
|
||||
getTableFQNFromColumnFQN,
|
||||
} from './CommonUtils';
|
||||
import { getGlossaryPath } from './RouterUtils';
|
||||
import { getGlossaryPath, getSettingPath } from './RouterUtils';
|
||||
import { ordinalize } from './StringsUtils';
|
||||
import SVGIcons, { Icons } from './SvgUtils';
|
||||
|
||||
@ -217,7 +217,10 @@ export const getEntityLink = (
|
||||
return getEditWebhookPath(fullyQualifiedName);
|
||||
|
||||
case EntityType.TYPE:
|
||||
return getCustomEntityPath(fullyQualifiedName);
|
||||
return getSettingPath(
|
||||
GlobalSettingsMenuCategory.CUSTOM_ATTRIBUTES,
|
||||
`${fullyQualifiedName}s`
|
||||
);
|
||||
|
||||
case EntityType.MLMODEL:
|
||||
case SearchIndex.MLMODEL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user