set the visible default to true.
This commit is contained in:
@ -31,7 +31,7 @@
|
|||||||
public MessageType Type { get; set; }
|
public MessageType Type { get; set; }
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public bool Visible{ get; set; }
|
public bool Visible { get; set; } = true;
|
||||||
|
|
||||||
public void RefreshMessage(string message, MessageType type, bool visible)
|
public void RefreshMessage(string message, MessageType type, bool visible)
|
||||||
{
|
{
|
||||||
|
@ -134,8 +134,15 @@
|
|||||||
var messageTopVisible = !string.IsNullOrEmpty(_messageContent) && _messagePosition == "top";
|
var messageTopVisible = !string.IsNullOrEmpty(_messageContent) && _messagePosition == "top";
|
||||||
var messageBottomVisible = !string.IsNullOrEmpty(_messageContent) && _messagePosition == "bottom";
|
var messageBottomVisible = !string.IsNullOrEmpty(_messageContent) && _messagePosition == "bottom";
|
||||||
|
|
||||||
moduleMessageTop.RefreshMessage(_messageContent, _messageType, messageTopVisible);
|
if (moduleMessageTop != null)
|
||||||
moduleMessageBottom.RefreshMessage(_messageContent, _messageType, messageBottomVisible);
|
{
|
||||||
|
moduleMessageTop.RefreshMessage(_messageContent, _messageType, messageTopVisible);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (moduleMessageBottom != null)
|
||||||
|
{
|
||||||
|
moduleMessageBottom.RefreshMessage(_messageContent, _messageType, messageBottomVisible);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override async Task OnErrorAsync(Exception exception)
|
protected override async Task OnErrorAsync(Exception exception)
|
||||||
|
Reference in New Issue
Block a user