Clean Up
This commit is contained in:
parent
b130c4550d
commit
4f9ced3e29
3 changed files with 11 additions and 8 deletions
|
|
@ -26,7 +26,6 @@ pub struct DashboardViewState {
|
|||
pub title: String,
|
||||
pub descriptions: Option<String>,
|
||||
pub monitors: Vec<MonitorViewState>,
|
||||
pub selected_index: usize,
|
||||
pub is_loading: bool,
|
||||
pub error_message: Option<String>,
|
||||
}
|
||||
|
|
@ -37,7 +36,6 @@ impl DashboardViewState {
|
|||
title: t("loading").to_string(),
|
||||
descriptions: None,
|
||||
monitors: Vec::new(),
|
||||
selected_index: 0,
|
||||
is_loading: true,
|
||||
error_message: None,
|
||||
}
|
||||
|
|
@ -91,7 +89,6 @@ impl DashboardViewState {
|
|||
title: data.title,
|
||||
descriptions: data.description,
|
||||
monitors,
|
||||
selected_index: 0,
|
||||
is_loading: false,
|
||||
error_message: None,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue