Skip to content

Commit

Permalink
Merge pull request #1368 from danskernesdigitalebibliotek/fix/renew-l…
Browse files Browse the repository at this point in the history
…oans-button

Fix/renew loans button
  • Loading branch information
Adamik10 authored Aug 21, 2024
2 parents 8e00b9e + 8874d12 commit 4c87022
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/apps/material/material.dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -962,3 +962,8 @@ export const inLargeSameSeriesAndIrregularFaustId = Template.bind({});
inLargeSameSeriesAndIrregularFaustId.args = {
wid: "work-of:150086-netmusik:BIS-2067"
};

export const journal = Template.bind({});
journal.args = {
wid: "work-of:870970-basis:01007556"
};
8 changes: 6 additions & 2 deletions src/core/utils/helpers/modal-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import configuration, { getConf } from "../../configuration";

export const constructModalId = (prefix: string, fragments: string[]) =>
[prefix, ...fragments].join("-");
export const constructModalId = (prefix: string, fragments: string[]) => {
if (prefix === "") {
return fragments.join("-");
}
return [prefix, ...fragments].join("-");
};

export const getModalIds = () => {
return getConf("modalIds", configuration);
Expand Down

0 comments on commit 4c87022

Please sign in to comment.