Improve i18n for permission page

This commit is contained in:
Gucheng Wang
2022-08-21 23:17:14 +08:00
parent 64f787fab5
commit b6988286b5
10 changed files with 121 additions and 21 deletions

View File

@ -857,7 +857,10 @@ export function getTagColor(s) {
export function getTags(tags) {
const res = [];
if (!tags) {return res;}
if (!tags) {
return res;
}
tags.forEach((tag, i) => {
res.push(
<Tag color={getTagColor(tag)}>
@ -868,6 +871,14 @@ export function getTags(tags) {
return res;
}
export function getTag(color, text) {
return (
<Tag color={color}>
{text}
</Tag>
);
}
export function getApplicationOrgName(application) {
return `${application?.organizationObj.owner}/${application?.organizationObj.name}`;
}