Skip to content

Commit 587e5be

Browse files
committed
https://github.com/bonfire-networks/bonfire-app/issues/1734
1 parent 1709794 commit 587e5be

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

priv/templates/lib/bonfire/web/views/dashboard_live.ex

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,35 @@ defmodule Bonfire.Web.Views.DashboardLive do
4545
main_widgets =
4646
Enum.filter(
4747
[
48-
{Bonfire.UI.Social.WidgetTrendingLinksLive,
49-
[limit: 5, widget_title: l("Trending Links")]},
48+
Settings.get(
49+
[Bonfire.Web.Views.DashboardLive, :include, :trending_links],
50+
true,
51+
current_user: current_user
52+
) &&
53+
{Bonfire.UI.Social.WidgetTrendingLinksLive,
54+
[limit: 5, widget_title: l("Trending Links")]},
5055
current_user &&
56+
Settings.get(
57+
[Bonfire.Web.Views.DashboardLive, :include, :recent_articles],
58+
true,
59+
current_user: current_user
60+
) &&
5161
{Bonfire.UI.Social.WidgetRecentArticlesLive,
5262
[limit: 5, widget_title: l("Recent Articles")]},
5363
current_user &&
64+
Settings.get(
65+
[Bonfire.Web.Views.DashboardLive, :include, :suggested_profiles],
66+
true,
67+
current_user: current_user
68+
) &&
5469
{Bonfire.UI.Social.WidgetSuggestedProfilesLive,
5570
[widget_title: l("Who to follow")]}
5671
],
5772
& &1
5873
)
5974

6075
default_feed =
61-
Settings.get([Bonfire.Web.Views.DashboardLive, :default_feed], :my,
76+
Settings.get([Bonfire.Web.Views.DashboardLive, :default_feed], false,
6277
current_user: current_user
6378
)
6479

0 commit comments

Comments
 (0)