Skip to content

Commit

Permalink
feat(ui): new patch status integration
Browse files Browse the repository at this point in the history
  • Loading branch information
krypt0nn committed Nov 13, 2023
1 parent 1722414 commit 95f2837
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/ui/preferences/general/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ impl SimpleAsyncComponent for GeneralApp {
JadeitePatchStatusVariant::Verified => &["success"],
JadeitePatchStatusVariant::Unverified => &["warning"],
JadeitePatchStatusVariant::Broken => &["error"],
JadeitePatchStatusVariant::Unsafe => &["error"]
JadeitePatchStatusVariant::Unsafe => &["error"],
JadeitePatchStatusVariant::Concerning => &["error"]
}

None => &[]
Expand All @@ -414,6 +415,9 @@ impl SimpleAsyncComponent for GeneralApp {
JadeitePatchStatusVariant::Broken => tr!("patch-broken-tooltip"),
JadeitePatchStatusVariant::Unsafe => tr!("patch-unsafe-tooltip"),

// TODO: special tooltip for concerning status
JadeitePatchStatusVariant::Concerning => tr!("patch-unsafe-tooltip"),

_ => String::new()
}

Expand Down

0 comments on commit 95f2837

Please sign in to comment.