Skip to content

Commit

Permalink
Direct to app if user tries to upload license (#4789)
Browse files Browse the repository at this point in the history
  • Loading branch information
miaawong authored Jul 29, 2024
1 parent 63c3d39 commit 07e1f6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/src/components/UploadLicenseFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ const UploadLicenseFile = (props: Props) => {
}
}, []);

useEffect(() => {
const { appSlugFromMetadata, appsListLength, isEmbeddedCluster } = props;
if (appsListLength > 0 && isEmbeddedCluster) {
navigate(`/app/${appSlugFromMetadata}`, { replace: true });
}
}, [props.appsListLength]);

const exchangeRliFileForLicense = async (content: string) => {
return new Promise((resolve, reject) => {
const payload = {
Expand Down

0 comments on commit 07e1f6c

Please sign in to comment.