From bf197b09c2ec262b6f6f0c64b0a91ced6e6e9771 Mon Sep 17 00:00:00 2001 From: Rares Mardare Date: Fri, 20 Oct 2023 16:52:18 +0300 Subject: [PATCH] Copy change for Schedules (#3175) # What this PR does - Replaced `LoadingPlaceholder` with normal `Text` on the Escalations page - Changed the copy for the loading indicator on Schedules Both changes have been done to be consistent with the style used on the other pages. --- .../escalation-chains/EscalationChains.tsx | 8 +++- .../src/pages/schedules/Schedules.tsx | 40 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/grafana-plugin/src/pages/escalation-chains/EscalationChains.tsx b/grafana-plugin/src/pages/escalation-chains/EscalationChains.tsx index faf5db74..872e4c16 100644 --- a/grafana-plugin/src/pages/escalation-chains/EscalationChains.tsx +++ b/grafana-plugin/src/pages/escalation-chains/EscalationChains.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Button, HorizontalGroup, Icon, IconButton, LoadingPlaceholder, Tooltip, VerticalGroup } from '@grafana/ui'; +import { Button, HorizontalGroup, Icon, IconButton, Tooltip, VerticalGroup } from '@grafana/ui'; import cn from 'classnames/bind'; import { observer } from 'mobx-react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; @@ -176,7 +176,11 @@ class EscalationChainsPage extends React.Component } ) : ( - + + + Loading... + + )} diff --git a/grafana-plugin/src/pages/schedules/Schedules.tsx b/grafana-plugin/src/pages/schedules/Schedules.tsx index 76ea5907..e6c5d52b 100644 --- a/grafana-plugin/src/pages/schedules/Schedules.tsx +++ b/grafana-plugin/src/pages/schedules/Schedules.tsx @@ -124,28 +124,24 @@ class SchedulesPage extends React.Component - {results === undefined ? ( - - ) : ( - - )} +
{showNewScheduleSelector && (