Skip to content

Commit

Permalink
Merge pull request #51 from serge-van-der-ven/bug/IS-0049
Browse files Browse the repository at this point in the history
Fixed #49 (support for child portals)
  • Loading branch information
EPTamminga authored Jul 28, 2019
2 parents 5fa22d7 + 4daae44 commit 7dcb5da
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Components/ModuleInstanceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ public class ModuleInstanceBase
/// </value>
public int ModuleID { get; set; }

/// <summary>
/// Gets or sets the portal identifier.
/// </summary>
/// <value>
/// The portal identifier.
/// </value>
public int PortalId { get; set; }

/// <summary>
/// Gets or sets a value indicating whether [switch user in one click].
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions TypeScript/app/identitySwitcher.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
ApplicationPath: string;
ServicesFramework: any;
ModuleID: number;
PortalId: number;
FilterText: string;
SwitchToText: string;
SwitchUserInOneClick: boolean;
Expand Down
3 changes: 3 additions & 0 deletions TypeScript/app/identitySwitcher/identityswitcher.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
return this.$http.get<string[]>(apiUrl,
{
headers: {
"PortalId": moduleInstance.PortalId,
"ModuleId": moduleInstance.ModuleID,
"TabId": moduleInstance.ServicesFramework.getTabId()
}
Expand All @@ -29,6 +30,7 @@
return this.$http.get<IUserCollection>(apiUrl,
{
headers: {
"PortalId": moduleInstance.PortalId,
"ModuleId": moduleInstance.ModuleID,
"TabId": moduleInstance.ServicesFramework.getTabId()
}
Expand All @@ -45,6 +47,7 @@
return this.$http.post<void>(apiUrl, null,
{
headers: {
"PortalId": moduleInstance.PortalId,
"ModuleId": moduleInstance.ModuleID,
"TabId": moduleInstance.ServicesFramework.getTabId()
}
Expand Down
1 change: 1 addition & 0 deletions ViewIdentitySwitcher.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private TModuleInstance GetModuleInstance<TModuleInstance>(PortalModuleBase modu
if (moduleControl != null)
{
result.ModuleID = moduleControl.ModuleId;
result.PortalId = moduleControl.PortalId;
result.FilterText = Localization.GetString("FilterText.Text", this.LocalResourceFile);
result.SwitchToText = Localization.GetString("SwitchToText.Text", this.LocalResourceFile);

Expand Down

0 comments on commit 7dcb5da

Please sign in to comment.