-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 #5740 from abpframework/blazor-message-refactor
Blazor message refactor
- Loading branch information
Showing
9 changed files
with
157 additions
and
118 deletions.
There are no files selected for viewing
13 changes: 7 additions & 6 deletions
13
...re.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/IUiMessageService.cs
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
using System.Threading.Tasks; | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Volo.Abp.AspNetCore.Components.WebAssembly | ||
{ | ||
public interface IUiMessageService | ||
{ | ||
Task InfoAsync(string message, string title = null, UiMessageOptions options = null); | ||
Task InfoAsync(string message, string title = null, Action<UiMessageOptions> options = null); | ||
|
||
Task SuccessAsync(string message, string title = null, UiMessageOptions options = null); | ||
Task SuccessAsync(string message, string title = null, Action<UiMessageOptions> options = null); | ||
|
||
Task WarnAsync(string message, string title = null, UiMessageOptions options = null); | ||
Task WarnAsync(string message, string title = null, Action<UiMessageOptions> options = null); | ||
|
||
Task ErrorAsync(string message, string title = null, UiMessageOptions options = null); | ||
Task ErrorAsync(string message, string title = null, Action<UiMessageOptions> options = null); | ||
|
||
Task<bool> ConfirmAsync(string message, string title = null, UiMessageOptions options = null); | ||
Task<bool> ConfirmAsync(string message, string title = null, Action<UiMessageOptions> options = null); | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
...Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/NullUiMessageService.cs
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
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
2 changes: 1 addition & 1 deletion
2
framework/src/Volo.Abp.BlazoriseUI/Components/UiMessageAlert.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
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
Oops, something went wrong.