You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,6 +64,33 @@ export default function ServerBanners({ server }: { server: Server }) {
63
64
});
64
65
}
65
66
67
+
if(kernelUpdateWarning){
68
+
constkernelCount=kernelUpdateWarning.count;
69
+
items.push({
70
+
key: 'kernel-update',
71
+
title: `Kernel update available`,
72
+
description: <>Install the pending kernel {kernelCount===1 ? 'package' : 'packages'} and restart to apply the new kernel.</>,
73
+
action: (
74
+
<Button
75
+
variant="outline"
76
+
size="sm"
77
+
onClick={()=>
78
+
dialog.confirm.open({
79
+
title: `Update kernel on ${server.name}?`,
80
+
description: `This installs the pending kernel ${kernelCount===1 ? 'package' : 'packages'} (a full upgrade that may install or remove packages), then restarts the server to boot the new kernel. The server will be unavailable for a minute or two and connections in flight will be dropped.`,
0 commit comments