Skip to content
Snippets Groups Projects
Commit 4ced368a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '286-download-link-for-project-source-is-invalid' into 'main'

Resolve "download link for project source is invalid"

See merge request !241
parents 98603602 10c33ef3
No related branches found
No related tags found
2 merge requests!264Resolve "add support for matomo",!241Resolve "download link for project source is invalid"
Pipeline #95297 passed
minerva-front (18.0.0~beta.3) stable; urgency=medium
* Bugfix: link to download project source was invalid
* Bugfix: change background to empty after overlay is loaded so there is no
blank background (#285)
* Bugfix: license info styling (#280)
......
......@@ -98,7 +98,7 @@ describe('ProjectInfoDrawer', () => {
expect(downloadButton).toBeInTheDocument();
expect(downloadButton).toHaveAttribute(
'href',
'localhost/projects/pdmap_appu_test:downloadSource',
'https://lux1.atcomp.pl/minerva/api/projects/pdmap_appu_test:downloadSource',
);
expect(downloadButton).toHaveAttribute('download', 'sourceFile.txt');
});
......
......@@ -16,6 +16,7 @@ import { DrawerHeading } from '@/shared/DrawerHeading';
import { LinkButton } from '@/shared/LinkButton';
import { useEffect } from 'react';
import './ProjectInfoDrawer.styles.css';
import { BASE_API_URL } from '@/constants';
export const ProjectInfoDrawer = (): JSX.Element => {
const dispatch = useAppDispatch();
......@@ -28,7 +29,10 @@ export const ProjectInfoDrawer = (): JSX.Element => {
const version = useAppSelector(versionSelector);
const description = useAppSelector(mainMapModelDescriptionSelector);
const sourceDownloadLink = window.location.hostname + apiPath.getSourceFile();
const sourceDownloadLink = BASE_API_URL + apiPath.getSourceFile();
// eslint-disable-next-line no-console
console.log(sourceDownloadLink);
let licenseName: string = '';
if (project) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment