mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +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 {
|
||||
showErrorToast(
|
||||
t('message.entity-fetch-error', {
|
||||
t('server.entity-fetch-error', {
|
||||
entity: `profile details for table ${source?.name || ''}`,
|
||||
})
|
||||
);
|
||||
|
@ -562,7 +562,7 @@ const TeamDetailsV1 = ({
|
||||
} catch (error) {
|
||||
showErrorToast(
|
||||
error as AxiosError,
|
||||
t('message.entity-fetch-error', {
|
||||
t('server.entity-fetch-error', {
|
||||
entity: 'User Permissions',
|
||||
})
|
||||
);
|
||||
|
@ -942,8 +942,12 @@ const Users = ({
|
||||
) : (
|
||||
<ErrorPlaceHolder>
|
||||
{tabNumber === 3
|
||||
? t('message.no-owned-entities')
|
||||
: t('message.no-followed-entities')}
|
||||
? t('server.no-user-entities', {
|
||||
type: 'owned',
|
||||
})
|
||||
: t('server.no-user-entities', {
|
||||
type: 'followed',
|
||||
})}
|
||||
</ErrorPlaceHolder>
|
||||
)}
|
||||
</div>
|
||||
|
@ -380,8 +380,7 @@
|
||||
"all-charts-are-mapped": "All charts are mapped with existing KPIs."
|
||||
},
|
||||
"server": {
|
||||
"no-followed-entities": "You have not followed anything yet.",
|
||||
"no-owned-entities": "You have not owned anything yet.",
|
||||
"no-user-entities": "You have not {{type}} anything yet.",
|
||||
"no-task-available": "No task data is available",
|
||||
"entity-fetch-error": "Error while fetching {{entity}}",
|
||||
"feed-post-error": "Error while posting the message!",
|
||||
|
@ -104,7 +104,7 @@ const UserPage = () => {
|
||||
.catch((err: AxiosError) => {
|
||||
showErrorToast(
|
||||
err,
|
||||
t('message.entity-fetch-error', {
|
||||
t('server.entity-fetch-error', {
|
||||
entity: 'User Details',
|
||||
})
|
||||
);
|
||||
@ -152,7 +152,7 @@ const UserPage = () => {
|
||||
.catch((err: AxiosError) => {
|
||||
showErrorToast(
|
||||
err,
|
||||
t('message.entity-fetch-error', {
|
||||
t('server.entity-fetch-error', {
|
||||
entity: `${fetchOwnedEntities ? 'Owned' : 'Follwing'} Entities`,
|
||||
})
|
||||
);
|
||||
@ -207,7 +207,7 @@ const UserPage = () => {
|
||||
.catch((err: AxiosError) => {
|
||||
showErrorToast(
|
||||
err,
|
||||
t('message.entity-fetch-error', {
|
||||
t('server.entity-fetch-error', {
|
||||
entity: 'Activity Feeds',
|
||||
})
|
||||
);
|
||||
|
@ -503,7 +503,7 @@ const TeamsPage = () => {
|
||||
.catch((err: AxiosError) => {
|
||||
showErrorToast(
|
||||
err,
|
||||
t('message.entity-fetch-error', {
|
||||
t('server.entity-fetch-error', {
|
||||
entity: 'Team Assets',
|
||||
})
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user