diff --git a/ui/src/Components/SilenceModal/index.stories.js b/ui/src/Components/SilenceModal/index.stories.js index a7dfd557c..6e481760a 100644 --- a/ui/src/Components/SilenceModal/index.stories.js +++ b/ui/src/Components/SilenceModal/index.stories.js @@ -33,7 +33,7 @@ storiesOf("SilenceModal", module) )) - .add("Silence Form", () => { + .add("Editor", () => { const alertStore = new AlertStore([]); const settingsStore = new Settings(); const silenceFormStore = new SilenceFormStore(); @@ -58,6 +58,21 @@ storiesOf("SilenceModal", module) silenceFormStore.tab.current = SilenceTabNames.Editor; + fetchMock.mock( + "begin:/alerts.json?q=cluster", + { totalAlerts: 0 }, + { + overwriteRoutes: true + } + ); + fetchMock.mock( + "begin:/alerts.json?q=instance", + { totalAlerts: 23 }, + { + overwriteRoutes: true + } + ); + return (