FeatureTogglePage.a5c056ba834965bd7c0d.js.map 1.5 KB

1
  1. {"version":3,"file":"FeatureTogglePage.a5c056ba834965bd7c0d.js","mappings":"6IAOO,MAAMA,EAAeC,IAC1B,MAAMC,GAAWC,EAAAA,EAAAA,cAAaC,GAAsBA,EAAMF,WAC1D,OAAOG,EAAAA,EAAAA,GAAYH,EAAUD,K,8FCJhB,SAASK,IACtB,MAAMC,GAAWP,EAAAA,EAAAA,GAAY,eAE7B,OACE,SAAC,IAAD,CAAMO,SAAUA,EAAhB,gBACE,UAAC,aAAD,YACE,oDADF,mDAGE,yBACI","sources":["webpack://grafana/./public/app/core/hooks/useNavModel.ts","webpack://grafana/./public/app/features/live/pages/FeatureTogglePage.tsx"],"sourcesContent":["import { useSelector } from 'react-redux';\n\nimport { NavModel } from '@grafana/data';\nimport { StoreState } from 'app/types/store';\n\nimport { getNavModel } from '../selectors/navModel';\n\nexport const useNavModel = (id: string): NavModel => {\n const navIndex = useSelector((state: StoreState) => state.navIndex);\n return getNavModel(navIndex, id);\n};\n","import React from 'react';\n\nimport Page from 'app/core/components/Page/Page';\nimport { useNavModel } from 'app/core/hooks/useNavModel';\n\nexport default function FeatureTogglePage() {\n const navModel = useNavModel('live-status');\n\n return (\n <Page navModel={navModel}>\n <Page.Contents>\n <h1>Pipeline is not enabled</h1>\n To enable pipelines, enable the feature toggle:\n <pre>\n {`[feature_toggles] \nenable = live-pipeline\n`}\n </pre>\n </Page.Contents>\n </Page>\n );\n}\n"],"names":["useNavModel","id","navIndex","useSelector","state","getNavModel","FeatureTogglePage","navModel"],"sourceRoot":""}