Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		
							
								
								
									
										34
									
								
								BlazorWebAssemblyVisaApiClient/Components/Status.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								BlazorWebAssemblyVisaApiClient/Components/Status.razor
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| <p class="@statusClass">@((MarkupString)StatusText)</p> | ||||
| <CascadingValue Value="this"> | ||||
|     @ChildContent | ||||
| </CascadingValue> | ||||
|  | ||||
| @code { | ||||
|     private string statusClass = string.Empty; | ||||
|  | ||||
|     [Parameter] | ||||
|     public RenderFragment? ChildContent { get; set; } | ||||
|  | ||||
|     public string StatusText { get; private set; } = string.Empty; | ||||
|  | ||||
|     public void SetMessage(string message) | ||||
|     { | ||||
|         statusClass = string.Empty; | ||||
|         StatusText = message; | ||||
|         StateHasChanged(); | ||||
|     } | ||||
|  | ||||
|     public void SetError(string message) | ||||
|     { | ||||
|         statusClass = "validation-message"; | ||||
|         StatusText = message; | ||||
|         StateHasChanged(); | ||||
|     } | ||||
|  | ||||
|     public void SetSuccess(string message) | ||||
|     { | ||||
|         statusClass = "text-success"; | ||||
|         StatusText = message; | ||||
|         StateHasChanged(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user