From a0b2a28ee216935aa23ae73d99f801075d516c0e Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Tue, 6 Jul 2021 19:52:37 +0530 Subject: [PATCH] 1) Set the default value of the long-running threshold to 2 minutes for warning and 5 minutes for the alert. 2) Use $color-danger for the alert threshold. --- web/pgadmin/dashboard/__init__.py | 2 +- web/pgadmin/static/scss/_backgrid.overrides.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/dashboard/__init__.py b/web/pgadmin/dashboard/__init__.py index 8ebf4c918..ae0cbf561 100644 --- a/web/pgadmin/dashboard/__init__.py +++ b/web/pgadmin/dashboard/__init__.py @@ -154,7 +154,7 @@ class DashboardModule(PgAdminModule): self.long_running_query_threshold = self.dashboard_preference.register( 'display', 'long_running_query_threshold', gettext('Long running query thresholds'), 'threshold', - None, category_label=PREF_LABEL_DISPLAY, + '2|5', category_label=PREF_LABEL_DISPLAY, help_str=gettext('Set the warning and alert threshold value to ' 'highlight the long-running queries on the ' 'dashboard.') diff --git a/web/pgadmin/static/scss/_backgrid.overrides.scss b/web/pgadmin/static/scss/_backgrid.overrides.scss index 0729bf715..8b7a90729 100644 --- a/web/pgadmin/static/scss/_backgrid.overrides.scss +++ b/web/pgadmin/static/scss/_backgrid.overrides.scss @@ -345,7 +345,7 @@ table.backgrid { } tr.alert { - background-color: $color-danger-light !important; + background-color: $color-danger !important; } }