web-interface.assets.1255d548-8617.7388ac4c5ecab44644f1.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-8617"],{f0XVFT4u:(D,l,t)=>{t.d(l,{Z:()=>d});var e=t("Z7aTuO5B"),f=t("ii0bleBb"),u=t.n(f),r=t("ty2gyrHp"),a=t("uZqmR+ju"),n=t("/GOzvPf6"),c=t("d4kzUuQm");const E=({notificationId:s})=>e.createElement(a.ButtonToolbar,null,e.createElement(n.AE,{permissions:`eventnotifications:read:${s}`},e.createElement(r.J,{to:c.ZP.ALERTS.NOTIFICATIONS.show(s)},e.createElement(a.Button,{bsStyle:"success"},"View Details"))),e.createElement(n.AE,{permissions:`eventnotifications:edit:${s}`},e.createElement(r.J,{to:c.ZP.ALERTS.NOTIFICATIONS.edit(s)},e.createElement(a.Button,{bsStyle:"success"},"Edit Notification"))));E.propTypes={notificationId:u().string.isRequired};const d=E},TzPJ8l65:(D,l,t)=>{t.r(l),t.d(l,{default:()=>L});var e=t("Z7aTuO5B"),f=t("yAXMqwrl"),u=t("62FDaRYn"),r=t("q2j1bVbz"),a=t("9tc+dS6Z"),n=t("/GOzvPf6"),c=t("d4kzUuQm"),E=t("E+CaPsQD"),d=t("0TVxnHwi"),s=t("QL8i6bcz"),p=t("ii0bleBb"),T=t.n(p),N=t("uZqmR+ju"),g=t("QBkUz07U");const O=i=>i===void 0?{}:s.G.exports("eventNotificationTypes").find(o=>o.type===i)||{},y=({notification:i})=>{const o=O(i.config.type),v=o==null?void 0:o.detailsComponent;return e.createElement(g.Z,{title:"Details"},e.createElement(n.mv,{label:"Title",value:i.title}),e.createElement(n.mv,{label:"Description",value:i.description}),e.createElement(n.mv,{label:"Notification Type",value:i.config.type}),v?e.createElement(v,{notification:i}):e.createElement(N.Alert,{bsStyle:"danger"},"Notification type not supported"))};y.propTypes={notification:T().object.isRequired};const A=y;var R=t("f0XVFT4u"),C=t("J7MaobQD"),Z=t("ava0cCRK"),M=t("jvpdvVQ7"),B=t("/7OuCFNo");const L=()=>{const i=(0,r.Z)(),[o,v]=(0,e.useState)(),{notificationId:P}=(0,f.useParams)(),S=(0,B.Z)();return(0,e.useEffect)(()=>{C.e.get(P).then(m=>v(m),m=>{m.status===404&&u.Z.report((0,a.W6)(m))})},[P]),(0,d.rq)(i.permissions,`eventnotifications:read:${P}`)||S.push(c.ZP.NOTFOUND),o?e.createElement(n.$4,{title:`View "${o.title}" Notification`},e.createElement(M.Z,null),e.createElement(n.mr,{title:`View "${o.title}" Notification`,actions:o&&e.createElement(R.Z,{notificationId:o.id}),documentationLink:{title:"Alerts documentation",path:E.Z.PAGES.ALERTS}},e.createElement("span",null,"Notifications alert you of any configured Event when they occur. Graylog can send Notifications directly to you or to other systems you use for that purpose.")),e.createElement(A,{notification:o})):e.createElement(n.$4,{title:"Notification Details"},e.createElement("span",null,e.createElement(n.mr,{title:"Notification Details"},e.createElement(n.$j,{text:"Loading Notification information..."}))))}}}]);})();
//# sourceMappingURL=1255d548-8617.7388ac4c5ecab44644f1.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy