Skip to content

Commit

Permalink
Merge pull request #6955 from AnjanaSamindraPerera/add-myaccountUrl-f…
Browse files Browse the repository at this point in the history
…or-markdown

Add myaccount url for markdown
  • Loading branch information
AnjanaSamindraPerera authored Oct 3, 2024
2 parents 683724c + 4ee2f5e commit 74dd379
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-cheetahs-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.application-templates.v1": patch
---

Add myaccountURL
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ interface MarkdownGuideDataInterface {
clientOrigin?: string;
serverOrigin?: string;
productName?: string;
accountAppURL?: string;
moderatedData?: ModeratedData;
}

Expand All @@ -113,6 +114,8 @@ export const ApplicationMarkdownGuide: FunctionComponent<ApplicationMarkdownGuid
const clientOrigin: string = useSelector((state: AppState) => state?.config?.deployment?.clientOrigin);
const serverOrigin: string = useSelector((state: AppState) => state?.config?.deployment?.idpConfigs?.serverOrigin);
const productName: string = useSelector((state: AppState) => state?.config?.ui?.productName);
const accountAppURL: string = useSelector((state: AppState) =>
state?.config?.deployment?.accountApp?.tenantQualifiedPath);

/**
* Convert certificate into the pem format.
Expand Down Expand Up @@ -175,6 +178,7 @@ export const ApplicationMarkdownGuide: FunctionComponent<ApplicationMarkdownGuid
markdownDataObject.clientOrigin = clientOrigin;
markdownDataObject.serverOrigin = serverOrigin;
markdownDataObject.productName = productName;
markdownDataObject.accountAppURL = accountAppURL;
markdownDataObject.moderatedData = getModeratedData();

return markdownDataObject;
Expand Down

0 comments on commit 74dd379

Please sign in to comment.