Skip to content

Commit

Permalink
Merge pull request #3748 from sbwalker/dev
Browse files Browse the repository at this point in the history
preserve backward compatibility but flag methods as obsolete
  • Loading branch information
sbwalker authored Feb 9, 2024
2 parents 6f3fd99 + e6df8dc commit c0d36bb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Oqtane.Client/UI/ModuleInstance.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,32 @@ else
}

@code {
// this component is on the static side of the render mode boundary
// it passes state as serializable parameters across the boundary so that the state can be used by downstream interactive components
[CascadingParameter]
protected PageState PageState { get; set; }

[CascadingParameter]
private Module ModuleState { get; set; }

[Obsolete("AddModuleMessage is deprecated. Use ModuleBase.AddModuleMessage instead.", false)]
public void AddModuleMessage(string message, MessageType type)
{
}

[Obsolete("AddModuleMessage is deprecated. Use ModuleBase.AddModuleMessage instead.", false)]
public void AddModuleMessage(string message, MessageType type, string position)
{
}

[Obsolete("ShowProgressIndicator is deprecated. Use ModuleBase.ShowProgressIndicator instead.", false)]
public void ShowProgressIndicator()
{
}

[Obsolete("HideProgressIndicator is deprecated. Use ModuleBase.HideProgressIndicator instead.", false)]
public void HideProgressIndicator()
{
}
}

0 comments on commit c0d36bb

Please sign in to comment.