Skip to content

Commit

Permalink
Updated ConfigWarning enum
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Jul 2, 2024
1 parent 6021176 commit ee80d42
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/messages/alert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ use std::time::Duration;
use leptos::*;

use crate::{
components::icon::{
IconCheckCircle, IconExclamationCircle, IconExclamationTriangle, IconXMark,
components::{
form,
icon::{IconCheckCircle, IconExclamationCircle, IconExclamationTriangle, IconXMark},
},
core::http::{self, ManagementApiError},
pages::config::{ConfigError, ConfigWarning, ReloadSettings},
Expand Down Expand Up @@ -324,6 +325,12 @@ impl From<ReloadSettings> for Alert {
ConfigWarning::AppliedDefault { default } => {
format!("Warning: Applied default value {default:?} to {key:?}")
}
ConfigWarning::Unread { value } => {
format!("Warning: Unread value {value:?} for {key:?}")
}
ConfigWarning::Build { error } => {
format!("Error for {key:?}: {error}")
}
}}

</li>
Expand Down

0 comments on commit ee80d42

Please sign in to comment.