mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 09:22:14 +00:00
UI : Label fixes for Errorplaceholder in User page (#8960)
* UI label fixes for errorplaceholder in User page * minor changes * added fix for server error Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
This commit is contained in:
parent
8a95ec1329
commit
9fca00b465
@ -191,7 +191,7 @@ const Explore: React.FC<ExploreProps> = ({
|
|||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
showErrorToast(
|
showErrorToast(
|
||||||
t('message.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: `profile details for table ${source?.name || ''}`,
|
entity: `profile details for table ${source?.name || ''}`,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -562,7 +562,7 @@ const TeamDetailsV1 = ({
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
showErrorToast(
|
showErrorToast(
|
||||||
error as AxiosError,
|
error as AxiosError,
|
||||||
t('message.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: 'User Permissions',
|
entity: 'User Permissions',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -942,8 +942,12 @@ const Users = ({
|
|||||||
) : (
|
) : (
|
||||||
<ErrorPlaceHolder>
|
<ErrorPlaceHolder>
|
||||||
{tabNumber === 3
|
{tabNumber === 3
|
||||||
? t('message.no-owned-entities')
|
? t('server.no-user-entities', {
|
||||||
: t('message.no-followed-entities')}
|
type: 'owned',
|
||||||
|
})
|
||||||
|
: t('server.no-user-entities', {
|
||||||
|
type: 'followed',
|
||||||
|
})}
|
||||||
</ErrorPlaceHolder>
|
</ErrorPlaceHolder>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -380,8 +380,7 @@
|
|||||||
"all-charts-are-mapped": "All charts are mapped with existing KPIs."
|
"all-charts-are-mapped": "All charts are mapped with existing KPIs."
|
||||||
},
|
},
|
||||||
"server": {
|
"server": {
|
||||||
"no-followed-entities": "You have not followed anything yet.",
|
"no-user-entities": "You have not {{type}} anything yet.",
|
||||||
"no-owned-entities": "You have not owned anything yet.",
|
|
||||||
"no-task-available": "No task data is available",
|
"no-task-available": "No task data is available",
|
||||||
"entity-fetch-error": "Error while fetching {{entity}}",
|
"entity-fetch-error": "Error while fetching {{entity}}",
|
||||||
"feed-post-error": "Error while posting the message!",
|
"feed-post-error": "Error while posting the message!",
|
||||||
|
@ -104,7 +104,7 @@ const UserPage = () => {
|
|||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(
|
showErrorToast(
|
||||||
err,
|
err,
|
||||||
t('message.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: 'User Details',
|
entity: 'User Details',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -152,7 +152,7 @@ const UserPage = () => {
|
|||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(
|
showErrorToast(
|
||||||
err,
|
err,
|
||||||
t('message.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: `${fetchOwnedEntities ? 'Owned' : 'Follwing'} Entities`,
|
entity: `${fetchOwnedEntities ? 'Owned' : 'Follwing'} Entities`,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -207,7 +207,7 @@ const UserPage = () => {
|
|||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(
|
showErrorToast(
|
||||||
err,
|
err,
|
||||||
t('message.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: 'Activity Feeds',
|
entity: 'Activity Feeds',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -503,7 +503,7 @@ const TeamsPage = () => {
|
|||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(
|
showErrorToast(
|
||||||
err,
|
err,
|
||||||
t('message.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: 'Team Assets',
|
entity: 'Team Assets',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user