Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Sep 10, 2024
1 parent 3eab4af commit bfcb597
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pwa/src/apiService/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class APIService {
const authorization = this.JWT ? { Authorization: "Bearer " + this.JWT } : {};

return axios.create({
baseURL: "https://nextcloud.test.commonground.nu/index.php/apps/opencatalogi/api",
baseURL: "http://localhost:8080/index.php/apps/opencatalogi/api",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import {
CommongroundRatingBronze,
} from "../../assets/svgs/CommongroundRatingImages";
import { usePublication } from "../../hooks/publication";
import { translateDate } from "../../services/dateFormat";

interface PublicationsDetailTemplateProps {
publicationId: string;
Expand Down Expand Up @@ -212,13 +213,13 @@ export const PublicationsDetailTemplate: React.FC<PublicationsDetailTemplateProp
{_getPublication.data?.published &&
<TableRow>
<TableCell><b>{t("Published")}</b></TableCell>
<TableCell>{_getPublication.data.published}</TableCell>
<TableCell>{translateDate('nl', _getPublication.data.published)}</TableCell>
</TableRow>
}
{_getPublication.data?.modified &&
<TableRow>
<TableCell><b>{t("Modified")}</b></TableCell>
<TableCell>{_getPublication.data.modified}</TableCell>
<TableCell>{translateDate('nl',_getPublication.data.modified)}</TableCell>
</TableRow>
}
</TableBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faUpload } from "@fortawesome/free-solid-svg-icons";
import { TOOLTIP_ID } from "../../../layout/Layout";
import { HorizontalOverflowWrapper } from "@conduction/components";
import { translateDate } from "../../../services/dateFormat";

interface PublicationsTableTemplateProps {
publications: any[];
Expand Down Expand Up @@ -58,7 +59,8 @@ export const PublicationsTableTemplate: React.FC<PublicationsTableTemplateProps>

<TableCell>
<span data-tooltip-id={TOOLTIP_ID} data-tooltip-content={publication?.description} className={styles.name}>
{publication?.description}
{publication?.description !== '' ? publication?.description : "Geen beschrijvingm"}

</span>
</TableCell>

Expand All @@ -69,7 +71,7 @@ export const PublicationsTableTemplate: React.FC<PublicationsTableTemplateProps>
data-tooltip-content={t("Published")}
>
<FontAwesomeIcon icon={faUpload} />
{publication.data?.published}
{translateDate('nl', publication.published)}
</DataBadge>
</TableCell>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const SearchComponentTemplate: React.FC<SearchComponentTemplateProps> = (
applicationCurrentPage: pagination.applicationCurrentPage,
});

navigate("/components");
navigate("/publication");
};

const clearFilters = () => {
Expand Down Expand Up @@ -64,7 +64,7 @@ export const SearchComponentTemplate: React.FC<SearchComponentTemplateProps> = (

<Button
onClick={() => {
navigate("/components"), clearFilters();
navigate("/publications"), clearFilters();
}}
className={styles.button}
>
Expand Down

0 comments on commit bfcb597

Please sign in to comment.