From 5c7f6c17382a377e7b885c715c0a873c4d0e30d2 Mon Sep 17 00:00:00 2001 From: sylenien Date: Mon, 16 May 2022 17:50:51 +0200 Subject: [PATCH] fix(ui): fix messages for empty dashboad --- frontend/app/components/Alerts/AlertForm.js | 18 ++++----- frontend/app/components/Alerts/Alerts.js | 12 ++++-- .../app/components/Dashboard/Dashboard.js | 37 ++++++++++--------- .../app/components/Dashboard/NewDashboard.tsx | 18 ++++++--- 4 files changed, 48 insertions(+), 37 deletions(-) diff --git a/frontend/app/components/Alerts/AlertForm.js b/frontend/app/components/Alerts/AlertForm.js index d3258d578..40c139624 100644 --- a/frontend/app/components/Alerts/AlertForm.js +++ b/frontend/app/components/Alerts/AlertForm.js @@ -37,7 +37,7 @@ const Section = ({ index, title, description, content }) => ( { description &&
{description}
} - +
{content}
@@ -122,7 +122,7 @@ const AlertForm = props => { { onChange={ writeQueryOption } /> - +
@@ -172,7 +172,7 @@ const AlertForm = props => { )} { !unit && ( { name="webhook" type="checkbox" checked={ instance.webhook } - onClick={ onChangeOption } + onClick={ onChangeOption } label="Webhook" />
@@ -266,7 +266,7 @@ const AlertForm = props => {
- {
)} - + {instance.webhook && (
@@ -294,8 +294,8 @@ const AlertForm = props => { } />
- - + +