Skip to content

Commit

Permalink
chore(term): remove feed prefix from feed detail component
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Mar 31, 2024
1 parent e095b07 commit 09a0a41
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions crates/synd_term/src/ui/components/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,6 @@ impl Subscription {
self.feeds.get(self.selected_feed_index)
}

/*
pub fn selected_feed_website_url(&self) -> Option<&str> {
self.feeds
.get(self.selected_feed_index)
.and_then(|feed_meta| feed_meta.website_url.as_deref())
}
pub fn selected_feed_url(&self) -> Option<&str> {
self.feeds
.get(self.selected_feed_index)
.map(|feed_meta| feed_meta.url.as_str())
}
*/

pub fn update_subscription(&mut self, action: ListAction, subscription: SubscriptionOutput) {
let feed_metas = subscription.feeds.nodes.into_iter().map(types::Feed::from);
match action {
Expand Down Expand Up @@ -251,10 +237,7 @@ impl Subscription {
Cow::Owned(feed.authors.iter().join(", "))
})),
Cell::new(Line::from(vec![
Span::styled(
"󰗀 Feed Src ",
Style::default().add_modifier(Modifier::BOLD),
),
Span::styled("󰗀 Src ", Style::default().add_modifier(Modifier::BOLD)),
Span::from(feed.url.as_str()),
])),
]),
Expand All @@ -267,10 +250,7 @@ impl Subscription {
feed.generator.as_deref().unwrap_or(ui::UNKNOWN_SYMBOL),
)),
Cell::new(Line::from(vec![
Span::styled(
"󰈙 Feed Type ",
Style::default().add_modifier(Modifier::BOLD),
),
Span::styled("󰈙 Type ", Style::default().add_modifier(Modifier::BOLD)),
Span::from(match feed.r#type {
Some(FeedType::RSS0) => "RSS 0",
Some(FeedType::RSS1) => "RSS 1",
Expand Down

0 comments on commit 09a0a41

Please sign in to comment.