-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from SSchulze1989/develop
v 0.11.7
- Loading branch information
Showing
16 changed files
with
293 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/iRLeagueManager.Web/Components/Settings/Dialogs/EditLeagueDescriptionDialog.razor
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/iRLeagueManager.Web/Components/Settings/Dialogs/LeagueDescriptionDialog.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@namespace iRLeagueManager.Web.Components | ||
@using Ganss.Xss | ||
@using iRLeagueManager.Web.Components | ||
@using iRLeagueApiCore.Common.Models | ||
@inherits PromptDialog<string> | ||
@inject HtmlSanitizer Sanitizer | ||
|
||
<MudDialog> | ||
<DialogContent> | ||
<EditForm Model=Value> | ||
<InputMarkdown @bind-Value="Value" /> | ||
</EditForm> | ||
</DialogContent> | ||
<DialogActions> | ||
<PromptDialogButtons OkText="Ok" OkClick="Submit" CancelText="Cancel" CancelClick="Cancel" /> | ||
</DialogActions> | ||
</MudDialog> | ||
|
||
@code { | ||
protected override async Task Submit() | ||
{ | ||
// sanitize input before saving | ||
Value = Sanitizer.Sanitize(Value); | ||
await base.Submit(); | ||
} | ||
} |
Oops, something went wrong.