From bebce3baddd74a4d5c896d1ebbe71f2e4f54a2f7 Mon Sep 17 00:00:00 2001 From: Rares Mardare Date: Mon, 12 Jun 2023 17:29:25 +0300 Subject: [PATCH] Use secondary btn, updated copies on MobileApp Send Push (#2159) # What this PR does Changes on MobileApp screen - Switched buttons to `secondary` instead of `destructive` - Update copy (Send Test Push/Important) + notification copy --- .../MobileAppConnection/MobileAppConnection.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.tsx b/grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.tsx index 0bb60fd9..0f4f84db 100644 --- a/grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.tsx +++ b/grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.tsx @@ -208,14 +208,14 @@ const MobileAppConnection = observer(({ userPk }: Props) => { onClick={() => onSendTestNotification()} disabled={isAttemptingTestNotification} > - Send Test Push notification + Send Test Push @@ -229,7 +229,7 @@ const MobileAppConnection = observer(({ userPk }: Props) => { try { await userStore.sendTestPushNotification(userPk, isCritical); - openNotification('Notification was sent'); + openNotification(isCritical ? 'Push Important Notification has been sent' : 'Push Notification has been sent'); } catch (ex) { if (ex.response?.status === 429) { openWarningNotification('Too much attempts, try again later');