From 16f2758265af603d2505fbcd931da77c89bf1175 Mon Sep 17 00:00:00 2001 From: Alirie Gray Date: Mon, 15 Oct 2018 16:17:35 -0700 Subject: [PATCH] Remove notification for failing to fetch JSON feed --- ui/src/shared/copy/notifications.ts | 5 ----- ui/src/status/actions/index.ts | 4 ---- 2 files changed, 9 deletions(-) diff --git a/ui/src/shared/copy/notifications.ts b/ui/src/shared/copy/notifications.ts index 20b865f18..f4fc4df53 100644 --- a/ui/src/shared/copy/notifications.ts +++ b/ui/src/shared/copy/notifications.ts @@ -230,11 +230,6 @@ export const notifyCurrentOrgDeleted = (): Notification => ({ message: 'Your current organization was deleted.', }) -export const notifyJSONFeedFailed = (url: string): Notification => ({ - ...defaultErrorNotification, - message: `Failed to fetch JSON Feed for News Feed from '${url}'`, -}) - // Chronograf Admin Notifications // ---------------------------------------------------------------------------- export const notifyMappingDeleted = ( diff --git a/ui/src/status/actions/index.ts b/ui/src/status/actions/index.ts index a016a13e6..14e5cb074 100644 --- a/ui/src/status/actions/index.ts +++ b/ui/src/status/actions/index.ts @@ -4,9 +4,6 @@ import {Dispatch} from 'redux' import {fetchJSONFeed as fetchJSONFeedAJAX} from 'src/status/apis' -import {notify} from 'src/shared/actions/notifications' -import {notifyJSONFeedFailed} from 'src/shared/copy/notifications' - import {JSONFeedData} from 'src/types' export enum ActionTypes { @@ -72,6 +69,5 @@ export const fetchJSONFeedAsync = (url: string) => async ( } catch (error) { console.error(error) dispatch(fetchJSONFeedFailed()) - dispatch(notify(notifyJSONFeedFailed(url))) } }