diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rs index bceb51e532..f340d8211b 100644 --- a/crates/extension/src/extension_store.rs +++ b/crates/extension/src/extension_store.rs @@ -42,6 +42,7 @@ pub struct Extension { pub description: Option, pub authors: Vec, pub repository: String, + pub download_count: usize, } #[derive(Clone)] diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rs index b5fb0ae5e6..8151d05b72 100644 --- a/crates/extensions_ui/src/extensions_ui.rs +++ b/crates/extensions_ui/src/extensions_ui.rs @@ -236,18 +236,24 @@ impl ExtensionsPage { ), ) .child( - h_flex().justify_between().child( - Label::new(format!( - "{}: {}", - if extension.authors.len() > 1 { - "Authors" - } else { - "Author" - }, - extension.authors.join(", ") - )) - .size(LabelSize::Small), - ), + h_flex() + .justify_between() + .child( + Label::new(format!( + "{}: {}", + if extension.authors.len() > 1 { + "Authors" + } else { + "Author" + }, + extension.authors.join(", ") + )) + .size(LabelSize::Small), + ) + .child( + Label::new(format!("Downloads: {}", extension.download_count)) + .size(LabelSize::Small), + ), ) .child( h_flex()