Skip to content

Commit

Permalink
fix: licenses management in org center (#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiahao-hjh committed Mar 26, 2024
1 parent 81067da commit 483a268
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/app/modules/org/pages/setting/license-info.tsx
Expand Up @@ -37,7 +37,7 @@ const LicenseInfo = () => {
setLoading(true);
const res = await getLicense();
if (res.success) {
setInfo(res.data.data);
setInfo(res.data);
setLoading(false);
}
};
Expand Down
6 changes: 6 additions & 0 deletions shell/app/modules/org/pages/setting/org-setting.tsx
Expand Up @@ -28,6 +28,7 @@ import IssueFieldManage from '../projects/issue-field-manage';
import IssueTypeManage from '../projects/issue-type-manage';
import Announcement from 'org/pages/announcement';
import permStore from 'user/stores/permission';
import LicenseInfo from './license-info';

import './org-setting.scss';
import { replaceWithLink } from 'app/common/utils';
Expand Down Expand Up @@ -89,6 +90,11 @@ export const OrgSetting = () => {
content: <Announcement />,
},
]),
{
tabTitle: i18n.t('License'),
tabKey: 'license',
content: <LicenseInfo />,
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion shell/app/modules/org/services/license.ts
Expand Up @@ -19,7 +19,7 @@ export interface License {
features: string[];
}

export const getLicense = (): RAW_RESPONSE<{ data: License }> => {
export const getLicense = (): RAW_RESPONSE<License> => {
return agent
.get('/api/licenses')
.query({ scope: 'ORG' })
Expand Down

0 comments on commit 483a268

Please sign in to comment.