Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
{"version":3,"sources":["webpack:///./src/pages/EditAlertConditionPage.jsx"],"names":["CurrentUserStore","CombinedProvider","get","StreamsStore","AlertConditionsStore","AlertConditionsActions","EditAlertConditionPage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","mixins","Reflux","connect","getInitialState","stream","undefined","componentDidMount","this","props","streamId","setState","conditionId","available","_handleUpdate","_handleDelete","history","push","Routes","LEGACY_ALERTS","CONDITIONS","_isLoading","state","alertCondition","availableConditions","render","condition","conditionType","type","title","page","DocsHelper","PAGES","ALERTS","text","active","className","md","onUpdate","onDelete"],"mappings":"2GAAA,+QAiBQA,EAAqBC,IAAiBC,IAAI,eAA1CF,iBACAG,EAAiBF,IAAiBC,IAAI,WAAtCC,a,EACiDF,IAAiBC,IAAI,mBAAtEE,E,EAAAA,qBAAsBC,E,EAAAA,uBAExBC,EAAyBC,IAAiB,CAC9CC,YAAa,yBAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,YAG3BC,OAAQ,CAACC,IAAOC,QAAQhB,GAAmBe,IAAOC,QAAQZ,IAE1Da,gBAT8C,WAU5C,MAAO,CACLC,YAAQC,IAIZC,kBAf8C,WAe1B,WAClBjB,EAAaD,IAAImB,KAAKC,MAAMZ,OAAOa,UAAU,SAACL,GAC5C,EAAKM,SAAS,CAAEN,OAAQA,OAG1Bb,EAAuBH,IAAImB,KAAKC,MAAMZ,OAAOa,SAAUF,KAAKC,MAAMZ,OAAOe,aACzEpB,EAAuBqB,aAGzBC,cAxB8C,SAwBhCJ,EAAUE,GACtBpB,EAAuBH,IAAIqB,EAAUE,IAGvCG,cA5B8C,WA6B5CC,IAAQC,KAAKC,IAAOC,cAAcC,aAGpCC,WAhC8C,WAiC5C,OAAQb,KAAKc,MAAMjB,SAAWG,KAAKc,MAAMC,iBAAmBf,KAAKc,MAAME,qBAGzEC,OApC8C,WAqC5C,GAAIjB,KAAKa,aACP,OAAO,kBAAC,IAAD,MAGT,IAAMK,EAAYlB,KAAKc,MAAMC,eACvBI,EAAgBnB,KAAKc,MAAME,oBAAoBE,EAAUE,MACvDvB,EAAWG,KAAKc,MAAhBjB,OAER,OACE,kBAAC,IAAD,CAAewB,MAAK,oBAAeH,EAAUG,OAAS,aACpD,6BACE,kBAAC,IAAD,CAAYA,MAAO,2CAAgB,4BAAKH,EAAUG,OAAS,cACzD,2IAIA,wIAEM,IACJ,kBAAC,IAAD,CAAmBC,KAAMC,IAAWC,MAAMC,OAAQC,KAAK,kBAHzD,KAMA,8BACE,kBAAC,IAAD,CAAqBC,OAAQjB,IAAOC,cAAcC,eAItD,kBAAC,IAAD,CAAKgB,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAAwBd,eAAgBG,EAChBC,cAAeA,EACftB,OAAQA,EACRiC,SAAU9B,KAAKM,cACfyB,SAAU/B,KAAKO,kBAI3C,kBAAC,IAAD,CAAKqB,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAA0BhC,OAAQA,WASjCZ","file":"0c1a66a2-78.1ec71fc30880f2142b45.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\nimport { Col, Row } from 'components/graylog';\n\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { AlertsHeaderToolbar } from 'components/alerts';\nimport { EditAlertConditionForm } from 'components/alertconditions';\nimport { StreamAlertNotifications } from 'components/alertnotifications';\n\nimport Routes from 'routing/Routes';\nimport DocsHelper from 'util/DocsHelper';\nimport history from 'util/History';\nimport CombinedProvider from 'injection/CombinedProvider';\n\nconst { CurrentUserStore } = CombinedProvider.get('CurrentUser');\nconst { StreamsStore } = CombinedProvider.get('Streams');\nconst { AlertConditionsStore, AlertConditionsActions } = CombinedProvider.get('AlertConditions');\n\nconst EditAlertConditionPage = createReactClass({\n displayName: 'EditAlertConditionPage',\n\n propTypes: {\n params: PropTypes.object.isRequired,\n },\n\n mixins: [Reflux.connect(CurrentUserStore), Reflux.connect(AlertConditionsStore)],\n\n getInitialState() {\n return {\n stream: undefined,\n };\n },\n\n componentDidMount() {\n StreamsStore.get(this.props.params.streamId, (stream) => {\n this.setState({ stream: stream });\n });\n\n AlertConditionsActions.get(this.props.params.streamId, this.props.params.conditionId);\n AlertConditionsActions.available();\n },\n\n _handleUpdate(streamId, conditionId) {\n AlertConditionsActions.get(streamId, conditionId);\n },\n\n _handleDelete() {\n history.push(Routes.LEGACY_ALERTS.CONDITIONS);\n },\n\n _isLoading() {\n return !this.state.stream || !this.state.alertCondition || !this.state.availableConditions;\n },\n\n render() {\n if (this._isLoading()) {\n return ;\n }\n\n const condition = this.state.alertCondition;\n const conditionType = this.state.availableConditions[condition.type];\n const { stream } = this.state;\n\n return (\n \n
\n Condition {condition.title || 'Untitled'}}>\n \n Define an alert condition and configure the way Graylog will notify you when that condition is satisfied.\n \n\n \n Are the default conditions not flexible enough? You can write your own! Read more about alerting in\n the{' '}\n .\n \n\n \n \n \n \n\n \n