diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:20:02 +0000 |
commit | 58daab21cd043e1dc37024a7f99b396788372918 (patch) | |
tree | 96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /web/gui/v2/9201.ff32cff2cdc7f61b39cf.chunk.js | |
parent | Releasing debian version 1.43.2-1. (diff) | |
download | netdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz netdata-58daab21cd043e1dc37024a7f99b396788372918.zip |
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | web/gui/v2/9201.ff32cff2cdc7f61b39cf.chunk.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web/gui/v2/9201.ff32cff2cdc7f61b39cf.chunk.js b/web/gui/v2/9201.ff32cff2cdc7f61b39cf.chunk.js deleted file mode 100644 index b7b46890b..000000000 --- a/web/gui/v2/9201.ff32cff2cdc7f61b39cf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="159f469e-21c4-4d8c-aaef-163f7953127a",e._sentryDebugIdIdentifier="sentry-dbid-159f469e-21c4-4d8c-aaef-163f7953127a")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[9201],{33244:function(e,t,a){var n=a(67294),l=a(59978),r=a(22648);t.Z=function(e){var t=e.children;return(0,r.m)()?n.createElement(l.Layer,{full:!0},n.createElement(l.Flex,{width:"100%",background:"mainBackground","data-testid":"alertView-mobileContainer"},t)):t}},62567:function(e,t,a){a.d(t,{Z:function(){return V}});var n=a(67294),l=a(59978),r=a(12008),o=a(78266),d=a(22648),i=a(37518),c=a(92253),s=a(80854),u=a(32071),m=a(39840),f=a(89250),g=a(4822),p=a(97945),E=a(71893),b=(0,E.default)(l.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]),h=function(e){var t=e.disabled,a=e.nodeId,r=e.alertId,o=e.context,d=e.lastStatusChange,i=e.onClose,c=e.isLoading,s=e.small,u=void 0!==s&&s,m=e.testid,E=void 0===m?"alertDetailsModal":m,h=(0,f.s0)(),w=(0,p.m3)(a),I=(0,n.useCallback)((function(){i&&i(),r?h(w,{state:{alertId:r}}):h(w)}),[w,r]),y=(0,g.TQ)(),v=(0,n.useCallback)((function(){var e=1e3*d;y({highlight:{after:e-6e4,before:e},correlation:!0}),I()}),[d,o,I,r]);return n.createElement(b,{justifyContent:"end",gap:2},n.createElement(l.Flex,{gap:2,justifyContent:"end"},n.createElement(l.Button,{small:u,label:"Run correlations",onClick:v,flavour:"hollow",isLoading:c,width:u?"112px":"170px","data-testid":"".concat(E,"-runCorrelations-button"),"data-ga":"alert-modal::click-run-correlations::alerts-view"}),n.createElement(l.Button,{small:u,label:"Go to chart",onClick:I,isLoading:c,disabled:c||t,width:u?"112px":"150px","data-testid":"".concat(E,"-goToNode-button"),"data-ga":"alert-modal::click-goto-chart::alerts-view"})))},w=(0,n.memo)(h),I=a(29876),y=a(20686),v=function(e){var t=e.alertId,a=e.context,r=e.name,o=e.nodeId,i=e.status,c=e.lastStatusChange,s=e.fullyLoaded,u=e.isWebview,m=(0,d.m)(),f=m?l.H4:l.H0;return n.createElement(l.Flex,{column:!0,gap:4},n.createElement(l.Flex,{justifyContent:"between"},n.createElement(l.Flex,{alignItems:"center",gap:2},n.createElement(y.Z,{margin:m?null:[.5,0,0],type:"".concat(i,"AlertsTable"),"data-testid":"alertView-statusPill"},i),n.createElement(f,{"data-testid":"alertView-alertName"},r)),!1),n.createElement(l.Flex,{justifyContent:"between",alignItems:"center"},n.createElement(I.Z,{alertId:t}),!u&&s&&!m&&n.createElement(w,{lastStatusChange:c,alertId:t,context:a,name:r,nodeId:o,small:!0,testid:"alertView"})))},x=a(46189),C=a(63346),k=E.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),L=E.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,l.getSizeBy)(4)),S=function(){var e="".concat(x.Z.assetsBaseURL,"/img/no-nodes-room.svg");return n.createElement(C.Ht,null,n.createElement(l.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"]},n.createElement(k,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),n.createElement(l.H3,null,"We couldn't find the alert"),n.createElement(l.Text,null,"This can be a temporary problem of that specific alert."),n.createElement(L,null,n.createElement(l.Button,{label:"Retry",icon:"reload"}))))},Z=a(50709),_=function(e){var t=e.children;return n.createElement(l.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center"},n.createElement(l.Icon,{name:"logo_s",color:"success",width:"23px"}),t)},V=function(e){var t=e.alertId,a=e.spaceId,f=e.roomId,g=e.isWebview,p=e.nodeName,E=(0,i.Hm)("name"),b=(0,r.E5)(t),h=b.fullyLoaded,w=void 0!==h&&h,I=b.fullyLoading,y=void 0===I||I,x=b.info,k=b.units,L=b.lastStatusChangeValue,V=b.lastStatusChange,F=b.context,B=b.instance,T=b.name,N=b.nodeId,R=b.status,H=b.lastUpdated,D=b.value;(0,r.yx)(t,{spaceId:a,roomId:f});var j=(0,m.pK)(D,k),U=(0,m.pK)(L,k),A=(0,d.m)();return n.createElement(C.ZP,{feature:"AlertDetailsView"},n.createElement(l.Flex,{column:!0,width:A?"100%":{max:280},padding:A?null:[0,0,10],background:A?"modalBackground":null},!g&&A&&n.createElement(_,null,n.createElement(l.Flex,{column:!0},n.createElement(l.H6,{color:"textLite"},"ROOM"),n.createElement(l.Text,{"data-testid":"alertView-mobile-roomName"},E))),n.createElement(l.Flex,{column:!0,padding:A?[3]:[0],overflow:A?"auto":"visible",gap:3},n.createElement(v,{alertId:t,context:F,status:R,name:T,nodeId:N,lastStatusChange:V,fullyLoaded:w,isWebview:g}),w?null:y?n.createElement(o.Z,{title:"Loading alert..."}):n.createElement(S,null),w&&x&&n.createElement(n.Fragment,null,n.createElement(s.Z,{iconName:"documentation"},"Alert Description"),n.createElement(l.Text,{"data-testid":"alertView-info"},x),n.createElement(Z.Z,{alertId:t})),w&&n.createElement(c.Z,{id:t,context:F,instance:B,formattedLastValue:j,formattedLastStatusChangeValue:U,lastStatusChange:V,lastUpdated:H,isFormattedValueLoaded:w,nodeId:N,status:R,testid:"alertView",spaceId:a,roomId:f}),w&&n.createElement(u.Z,{id:t,nodeName:p,testid:"alertView"})),A&&n.createElement(l.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"}},n.createElement(l.TextSmall,null,"In order to ",n.createElement(l.TextSmall,{strong:!0},"Run Correlations")," or"," ",n.createElement(l.TextSmall,{strong:!0},"View the Chart")," you will have to visit this alert from its' dedicated page on a desktop device."))))}},69201:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var n=a(67294),l=a(54227),r=a(12008),o=a(91268),d=a(78266),i=a(45987),c=(a(74916),a(64765),a(89250)),s=a(12599),u=a(17563),m=["alertId"],f=a(62567),g=a(33244),p=function(){var e=function(){var e=(0,c.UO)(),t=e.alertId,a=(0,i.Z)(e,m),l=(0,c.TH)().search,r=u.parse(l).transition,o=(0,n.useRef)(r||t),d=(0,c.s0)();return(0,n.useEffect)((function(){r&&r!==t&&d((0,s.Gn)("/spaces/:spaceSlug/rooms/:roomSlug/alerts/".concat(r),a),{replace:!0})}),[t,r]),o.current}(),t=(0,r.E5)(e),a=t.name,p=void 0===a?"unknown alert":a,E=t.fullyLoaded,b=void 0!==E&&E,h=(0,r.Bk)();return(0,l.bV)({title:p,id:e,destination:e,params:location.hash,type:"alerts",isReady:b}),h?n.createElement(o.Z,{overflow:{vertical:"auto"},margin:[0,0,8],padding:[3]},h&&n.createElement(g.Z,null,n.createElement(f.Z,{alertId:e}))):n.createElement(d.Z,{title:"Loading alert..."})}}}]);
\ No newline at end of file |