add label new
This commit is contained in:
parent
09f6dd0625
commit
c469386c6a
4 changed files with 40 additions and 6 deletions
|
@ -66,7 +66,7 @@ pub fn time_since(event: DateTime<Utc>) -> String {
|
|||
}
|
||||
|
||||
fn print_label(label: &Label) {
|
||||
let color = hex_to_color(&label.hex_color).unwrap();
|
||||
let color = hex_to_color(&label.hex_color).unwrap_or(Color::Reset);
|
||||
print_color_bg(color, label.title.trim());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue