Skip to content

Commit

Permalink
EW-553: Export description of etherpad content as title of weblink.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreuzkam-cap committed Oct 17, 2023
1 parent 2fc165e commit 7f08e5c
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,18 @@ export class CommonCartridgeExportService {

if (content.component === ComponentType.ETHERPAD) {
return version === CommonCartridgeVersion.V_1_3_0
? { ...commonProps, type: CommonCartridgeResourceType.WEB_LINK_V3, url: content.content.url }
: { ...commonProps, type: CommonCartridgeResourceType.WEB_LINK_V1, url: content.content.url };
? {
...commonProps,
type: CommonCartridgeResourceType.WEB_LINK_V3,
url: content.content.url,
title: content.content.description,
}
: {
...commonProps,
type: CommonCartridgeResourceType.WEB_LINK_V1,
url: content.content.url,
title: content.content.description,
};
}

return undefined;
Expand Down

0 comments on commit 7f08e5c

Please sign in to comment.