diff --git a/pkg/lib/cockpit-components-dialog.jsx b/pkg/lib/cockpit-components-dialog.jsx
index 9883aaca8b38..041a5694195a 100644
--- a/pkg/lib/cockpit-components-dialog.jsx
+++ b/pkg/lib/cockpit-components-dialog.jsx
@@ -235,8 +235,7 @@ class Dialog extends React.Component {
;
const error = this.props.error || this.props.static_error;
- const error_alert = error &&
- {error.details};
+ const error_alert = error && ;
return (
{
};
const props = () => {
- const title = (def.Action && (def.Action.Danger || def.Action.DangerButton)
- ? <> {def.Title}>
- : def.Title);
return {
id: "dialog",
- title,
+ title: def.Title,
+ titleIconVariant: (def.Action && (def.Action.Danger || def.Action.DangerButton)) ? "warning" : null,
body: