Skip to content

Commit

Permalink
Added Disabled and Unknown status CSS styling (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSpaghetti committed Apr 9, 2024
1 parent fca8f15 commit 82a571c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
data-bs-target="#@ProviderName"
aria-expanded="false"
aria-controls="@ProviderName">
<i class="@GetClassForHealth(Health.Status)" title="@Health.Message"></i>
<i class="@GetClassForHealth(Health.Status)" style="@(Health.Status == SocialMediaStatus.Disabled ? "grayscale(100%)" : "none")" title="@Health.Message"></i>
<i class="bi @ProviderIconCssClass"></i>
@ProviderName
</button>
Expand Down Expand Up @@ -57,6 +57,8 @@
SocialMediaStatus.Degraded => "bi bi-exclamation-circle-fill text-warning",
SocialMediaStatus.Unknown => "bi bi-exclamation-circle-fill text-warning",
SocialMediaStatus.Unhealthy => "bi bi-x-circle-fill text-danger",
SocialMediaStatus.Disabled => "bi bi-stop-circle-fill text-muted",
SocialMediaStatus.Unknown => "bi bi-question-circle-fill text-info",

Check failure on line 61 in src/TagzApp.Blazor.Client/Components/Admin/UiProviderConfig.razor

View workflow job for this annotation

GitHub Actions / build

The pattern is unreachable. It has already been handled by a previous arm of the switch expression or it is impossible to match.

Check failure on line 61 in src/TagzApp.Blazor.Client/Components/Admin/UiProviderConfig.razor

View workflow job for this annotation

GitHub Actions / build

The pattern is unreachable. It has already been handled by a previous arm of the switch expression or it is impossible to match.
_ => "bi text-primary"
};

Expand Down

0 comments on commit 82a571c

Please sign in to comment.