File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1- import { mdiAlertOutline } from "@mdi/js" ;
1+ import { mdiAlertOutline , mdiClose } from "@mdi/js" ;
22import { css , html , LitElement , nothing } from "lit" ;
33import { customElement , property , query , state } from "lit/decorators" ;
44import { ifDefined } from "lit/directives/if-defined" ;
@@ -70,6 +70,15 @@ class DialogBox extends LitElement {
7070 aria-describedby = "dialog-box-description"
7171 >
7272 <ha- dialog- header slot= "header" >
73+ ${ ! confirmPrompt
74+ ? html `<slot name= "headerNavigationIcon" slot = "navigationIcon" >
75+ <ha- icon- butto n
76+ data- dialog= "close"
77+ .label = ${ this . hass ?. localize ( "ui.common.close" ) ?? "Close" }
78+ .path = ${ mdiClose }
79+ > </ ha- icon- butto n
80+ > </ slot> `
81+ : nothing }
7382 <span slot= "title" id = "dialog-box-title" >
7483 ${ this . _params . warning
7584 ? html `<ha- svg- icon
You can’t perform that action at this time.
0 commit comments