From 3ef7b219945aab273217442927d92b0ee12442a7 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Sun, 18 Jan 2015 21:30:10 -0800 Subject: [PATCH] hide dashboard views that are disabled from customize tab --- planetstack/core/dashboard/views/view_common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/planetstack/core/dashboard/views/view_common.py b/planetstack/core/dashboard/views/view_common.py index 9d979e6..e2b28a4 100644 --- a/planetstack/core/dashboard/views/view_common.py +++ b/planetstack/core/dashboard/views/view_common.py @@ -50,6 +50,9 @@ def getDashboards(user): unused_dashboard_names = [] for dashboardView in DashboardView.objects.all(): + # do not show disabled dashboard views + if not dashboardView.enabled: + continue if not dashboardView.name in dashboard_names: unused_dashboard_names.append(dashboardView.name) -- 2.43.0