mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-11 11:52:50 +00:00
Compare commits
2 Commits
fix-dialog
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a10cd7fa8 | ||
|
|
fa354aed2a |
@@ -127,7 +127,6 @@ export class DialogDataTableSettings extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${localize("ui.components.data-table.settings.header")}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import { listenMediaQuery } from "../common/dom/media_query";
|
||||
import { internationalizationContext } from "../data/context";
|
||||
import type { HomeAssistant } from "../types";
|
||||
import "./ha-bottom-sheet";
|
||||
import "./ha-dialog-header";
|
||||
import "./ha-icon-button";
|
||||
@@ -82,8 +81,6 @@ export const ADAPTIVE_DIALOG_MEDIA_QUERY =
|
||||
*/
|
||||
@customElement("ha-adaptive-dialog")
|
||||
export class HaAdaptiveDialog extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ attribute: "aria-labelledby" })
|
||||
public ariaLabelledBy?: string;
|
||||
|
||||
@@ -202,7 +199,6 @@ export class HaAdaptiveDialog extends LitElement {
|
||||
.ariaLabelledBy=${this._defaultAriaLabelledBy}
|
||||
.ariaDescribedBy=${this.ariaDescribedBy}
|
||||
.flexContent=${this.flexContent}
|
||||
.hass=${this.hass}
|
||||
.open=${this.open}
|
||||
.preventScrimClose=${this.preventScrimClose}
|
||||
>
|
||||
@@ -221,7 +217,6 @@ export class HaAdaptiveDialog extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this.open}
|
||||
.type=${this.type}
|
||||
.width=${this.width}
|
||||
|
||||
@@ -7,7 +7,6 @@ import { fireEvent } from "../common/dom/fire_event";
|
||||
import { SwipeGestureRecognizer } from "../common/util/swipe-gesture-recognizer";
|
||||
import { ScrollableFadeMixin } from "../mixins/scrollable-fade-mixin";
|
||||
import { haStyleScrollbar } from "../resources/styles";
|
||||
import type { HomeAssistant } from "../types";
|
||||
|
||||
export const BOTTOM_SHEET_ANIMATION_DURATION_MS = 300;
|
||||
|
||||
@@ -47,8 +46,6 @@ const SWIPE_LOCKED_CLASSES = new Set(["volume-slider-container", "forecast"]);
|
||||
*/
|
||||
@customElement("ha-bottom-sheet")
|
||||
export class HaBottomSheet extends ScrollableFadeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||
|
||||
@property({ attribute: "aria-labelledby" })
|
||||
public ariaLabelledBy?: string;
|
||||
|
||||
@@ -67,6 +64,11 @@ export class HaBottomSheet extends ScrollableFadeMixin(LitElement) {
|
||||
|
||||
@state() private _sliderInteractionActive = false;
|
||||
|
||||
// disabled till iOS app fix the "focus_element" implementation
|
||||
// @state()
|
||||
// @consume({ context: configContext, subscribe: true })
|
||||
// private _hassConfig?: ContextType<typeof configContext>;
|
||||
|
||||
@query("#drawer") private _drawer!: HTMLElement;
|
||||
|
||||
@query("#body") private _bodyElement!: HTMLDivElement;
|
||||
@@ -90,13 +92,13 @@ export class HaBottomSheet extends ScrollableFadeMixin(LitElement) {
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
// disabled till iOS app fix the "focus_element" implementation
|
||||
// if (this.hass && isIosApp(this.hass.auth.external)) {
|
||||
// if (this._hassConfig?.auth.external && isIosApp(this._hassConfig.auth.external)) {
|
||||
// const element = this.renderRoot.querySelector("[autofocus]");
|
||||
// if (element !== null) {
|
||||
// if (!element.id) {
|
||||
// element.id = "ha-bottom-sheet-autofocus";
|
||||
// }
|
||||
// this.hass.auth.external?.fireMessage({
|
||||
// this._hassConfig.auth.external.fireMessage({
|
||||
// type: "focus_element",
|
||||
// payload: {
|
||||
// element_id: element.id,
|
||||
|
||||
@@ -76,12 +76,7 @@ class DialogJoinMediaPlayers extends LitElement {
|
||||
|
||||
const entityId = this._entityId;
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
flexcontent
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
<ha-dialog .open=${this._open} flexcontent @closed=${this._dialogClosed}>
|
||||
<ha-dialog-header show-border slot="header">
|
||||
<ha-icon-button
|
||||
.label=${this.hass.localize("ui.common.close")}
|
||||
|
||||
@@ -100,7 +100,6 @@ class DialogMediaManage extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
?prevent-scrim-close=${this._uploading || this._deleting}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -77,7 +77,6 @@ class DialogMediaPlayerBrowse extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
width="large"
|
||||
flexcontent
|
||||
|
||||
@@ -154,7 +154,6 @@ class DialogTargetDetails extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._opened}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.components.target-picker.target_details"
|
||||
|
||||
@@ -58,7 +58,6 @@ class DialogConfigEntrySystemOptions extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.dialogs.config_entry_system_options.title",
|
||||
|
||||
@@ -333,7 +333,6 @@ class DataEntryFlowDialog extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
prevent-scrim-close
|
||||
@after-show=${this._focusFormStep}
|
||||
|
||||
@@ -103,7 +103,6 @@ export class ListItemsDialog
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._params.title ?? " "}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -112,7 +112,6 @@ export class DialogEnterCode
|
||||
if (isText) {
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._dialogParams.title ??
|
||||
this.hass.localize("ui.dialogs.enter_code.title")}
|
||||
@@ -150,7 +149,6 @@ export class DialogEnterCode
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._dialogParams.title ?? "Enter code"}
|
||||
width="small"
|
||||
|
||||
@@ -140,7 +140,6 @@ export class DialogForm
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._params.title}
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -96,7 +96,6 @@ export class HaImagecropperDialog
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.dialogs.image_cropper.crop_image"
|
||||
|
||||
@@ -148,7 +148,6 @@ class DialogLightColorFavorite extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
.headerTitle=${this._dialogParams?.title}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -65,7 +65,6 @@ class MoreInfoSirenAdvancedControls extends LitElement {
|
||||
return html`
|
||||
<ha-dialog
|
||||
.open=${this._open}
|
||||
.hass=${this.hass}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.components.siren.advanced_controls"
|
||||
)}
|
||||
|
||||
@@ -598,7 +598,6 @@ export class MoreInfoDialog extends ScrollableFadeMixin(LitElement) {
|
||||
|
||||
return html`
|
||||
<ha-adaptive-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
.width=${this._fill ? "full" : this.large ? "large" : "medium"}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -242,7 +242,6 @@ export class QuickBar extends LitElement {
|
||||
<ha-adaptive-dialog
|
||||
without-header
|
||||
flexcontent
|
||||
.hass=${this.hass}
|
||||
aria-label=${this.hass.localize("ui.dialogs.quick-bar.title")}
|
||||
.open=${this._open}
|
||||
hideActions
|
||||
@@ -253,7 +252,6 @@ export class QuickBar extends LitElement {
|
||||
${!this._loading && this._opened
|
||||
? html`<ha-picker-combo-box
|
||||
id="combo-box"
|
||||
.hass=${this.hass}
|
||||
@index-selected=${this._handleItemSelected}
|
||||
.notFoundLabel=${this.hass.localize(
|
||||
"ui.dialogs.quick-bar.nothing_found"
|
||||
|
||||
@@ -76,7 +76,6 @@ class DialogRestartWait extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
.headerTitle=${this._title}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -109,7 +109,6 @@ class DialogRestart extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-adaptive-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._dialogOpen}
|
||||
header-title=${dialogTitle}
|
||||
allow-mode-change
|
||||
|
||||
@@ -165,7 +165,6 @@ class DialogEditSidebar extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${dialogTitle}
|
||||
header-subtitle=${!this._migrateToUserData
|
||||
|
||||
@@ -70,7 +70,6 @@ export class TTSTryDialog extends LitElement {
|
||||
}
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize("ui.dialogs.tts-try.header")}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -29,7 +29,6 @@ class DialogBox extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize("ui.dialogs.update_backup.title")}
|
||||
width="small"
|
||||
|
||||
@@ -143,7 +143,6 @@ export class HaVoiceAssistantSetupDialog extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title="Voice Satellite setup"
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -98,12 +98,7 @@ export class HaVoiceCommandDialog extends LitElement {
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
@closed=${this._dialogClosed}
|
||||
flexcontent
|
||||
>
|
||||
<ha-dialog .open=${this._open} @closed=${this._dialogClosed} flexcontent>
|
||||
<ha-dialog-header slot="header">
|
||||
<ha-icon-button
|
||||
slot="navigationIcon"
|
||||
|
||||
@@ -552,7 +552,6 @@ export class HaTabsSubpageDataTable extends KeyboardShortcutMixin(LitElement) {
|
||||
</hass-tabs-subpage>
|
||||
${this.showFilters && !showPane
|
||||
? html`<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${true}
|
||||
width="full"
|
||||
header-title=${localize("ui.components.subpage-data-table.filters")}
|
||||
|
||||
@@ -41,7 +41,6 @@ class ConfirmEventDialogBox extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._params.title}
|
||||
width="small"
|
||||
|
||||
@@ -66,7 +66,6 @@ class DialogCalendarEventDetail extends LitElement {
|
||||
const stateObj = this.hass.states[this._calendarId!];
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._data!.summary}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -149,7 +149,6 @@ class DialogCalendarEventEditor extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
`ui.components.calendar.event.${isCreate ? "add" : "edit"}`
|
||||
|
||||
@@ -98,7 +98,6 @@ export class DialogAddApplicationCredential extends LitElement {
|
||||
: "";
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
@closed=${this._abortDialog}
|
||||
.preventScrimClose=${!!this._domain ||
|
||||
|
||||
@@ -70,7 +70,6 @@ class AppsRegistriesDialog extends LitElement {
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
@closed=${this._dialogClosed}
|
||||
header-title=${this.hass.localize(
|
||||
|
||||
@@ -87,7 +87,6 @@ class DialogAreasFloorsOrder extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${dialogTitle}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -108,7 +108,6 @@ class DialogFloorDetail extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${entry
|
||||
? this.hass.localize("ui.panel.config.floors.editor.update_floor")
|
||||
|
||||
@@ -598,7 +598,6 @@ class DialogAddAutomationElement
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
width="large"
|
||||
.open=${this._open}
|
||||
@closed=${this._handleClosed}
|
||||
|
||||
@@ -57,7 +57,6 @@ class DialogAutomationSaveTimeout extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._opened}
|
||||
header-title=${title}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -152,7 +152,6 @@ class DialogNewAutomation extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-adaptive-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
flexcontent
|
||||
header-title=${this.hass.localize(
|
||||
|
||||
@@ -39,7 +39,6 @@ class DialogPasteReplace extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
@closed=${this._dialogClosed}
|
||||
header-title=${this.hass.localize(
|
||||
|
||||
@@ -142,6 +142,7 @@ export default class HaAutomationSidebarCard extends ScrollableFadeMixin(
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
padding-bottom: max(var(--safe-area-inset-bottom, 0px), 32px);
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,6 @@ export const automationRowsStyles = css`
|
||||
export const sidebarEditorStyles = css`
|
||||
.sidebar-editor {
|
||||
display: block;
|
||||
padding-top: 8px;
|
||||
}
|
||||
.description {
|
||||
padding-top: 16px;
|
||||
|
||||
@@ -209,7 +209,6 @@ class DialogBackupOnboarding extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._stepTitle}
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -89,7 +89,6 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${dialogTitle}
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -56,7 +56,6 @@ class DialogDownloadDecryptedBackup extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.backup.dialogs.download.title"
|
||||
|
||||
@@ -181,11 +181,7 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
|
||||
const selectedAgents = this._formData.agent_ids;
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
<ha-dialog .open=${this._open} @closed=${this._dialogClosed}>
|
||||
<ha-dialog-header slot="header">
|
||||
${isFirstStep
|
||||
? html`
|
||||
|
||||
@@ -64,7 +64,6 @@ class LocalBackupLocationDialog extends LitElement {
|
||||
}
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
`ui.panel.config.backup.dialogs.local_backup_location.title`
|
||||
|
||||
@@ -46,7 +46,6 @@ class DialogNewBackup extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._opened}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.backup.dialogs.new.title"
|
||||
|
||||
@@ -137,7 +137,6 @@ class DialogRestoreBackup extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${dialogTitle}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -86,7 +86,6 @@ class DialogSetBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${dialogTitle}
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -47,7 +47,6 @@ class DialogShowBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.backup.dialogs.show_encryption_key.title"
|
||||
|
||||
@@ -75,7 +75,6 @@ export class DialogUploadBackup
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.backup.dialogs.upload.title"
|
||||
|
||||
@@ -73,7 +73,6 @@ class DialogImportBlueprint extends LitElement {
|
||||
const heading = this.hass.localize("ui.panel.config.blueprint.add.header");
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
width=${this.large ? "full" : "medium"}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -39,7 +39,6 @@ export class DialogSupportPackage extends LitElement {
|
||||
protected render() {
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
width="full"
|
||||
header-title="Download support package"
|
||||
|
||||
@@ -92,7 +92,6 @@ export class DialogTryTts extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.cloud.account.tts.dialog.header"
|
||||
|
||||
@@ -49,7 +49,6 @@ class DialogCloudAlreadyConnected extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.cloud.dialog_already_connected.heading"
|
||||
|
||||
@@ -41,7 +41,6 @@ class DialogCloudCertificate extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.cloud.dialog_certificate.certificate_information"
|
||||
|
||||
@@ -51,7 +51,6 @@ export class DialogManageCloudhook extends LitElement {
|
||||
: documentationUrl(this.hass!, `/integrations/${webhook.domain}/`);
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass!.localize(
|
||||
"ui.panel.config.cloud.dialog_cloudhook.webhook_for",
|
||||
|
||||
@@ -46,7 +46,6 @@ export class DialogJoinBeta
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize("ui.dialogs.join_beta_channel.title")}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -136,7 +136,6 @@ class DialogNewDashboard extends LitElement implements HassDialog {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
flexcontent
|
||||
width="large"
|
||||
|
||||
@@ -157,7 +157,6 @@ export class DialogStatisticsFixUnsupportedUnitMetadata extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.developer-tools.tabs.statistics.fix_issue.adjust_sum.title"
|
||||
|
||||
@@ -51,7 +51,6 @@ export class DialogStatisticsFixUnitsChanged extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.developer-tools.tabs.statistics.fix_issue.units_changed.title"
|
||||
|
||||
@@ -48,7 +48,6 @@ export class DialogStatisticsFix extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
`ui.panel.config.developer-tools.tabs.statistics.fix_issue.${issue.type}.title`
|
||||
|
||||
@@ -144,7 +144,6 @@ export class DialogDeviceAutomation extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${title}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -49,7 +49,6 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
width="large"
|
||||
header-title=${this.hass!.localize(
|
||||
|
||||
@@ -67,7 +67,6 @@ class DialogDeviceRegistryDetail extends LitElement {
|
||||
const device = this._params.device;
|
||||
return html`
|
||||
<ha-adaptive-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${computeDeviceNameDisplay(
|
||||
device,
|
||||
|
||||
@@ -122,7 +122,6 @@ export class DialogEnergyBatterySettings
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.battery.dialog.header"
|
||||
|
||||
@@ -138,7 +138,6 @@ export class DialogEnergyDeviceSettingsWater
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption_water.dialog.header"
|
||||
|
||||
@@ -139,7 +139,6 @@ export class DialogEnergyDeviceSettings
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption.dialog.header"
|
||||
|
||||
@@ -145,7 +145,6 @@ export class DialogEnergyGasSettings
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.gas.dialog.header"
|
||||
|
||||
@@ -174,7 +174,6 @@ export class DialogEnergyGridSettings
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.grid.dialog.header"
|
||||
|
||||
@@ -103,7 +103,6 @@ export class DialogEnergySolarSettings
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.solar.dialog.header"
|
||||
|
||||
@@ -112,7 +112,6 @@ export class DialogEnergyWaterSettings
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.water.dialog.header"
|
||||
|
||||
@@ -156,7 +156,6 @@ export class DialogVacuumSegmentMapping
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
@closed=${this._dialogClosed}
|
||||
.headerTitle=${this.hass.localize(
|
||||
|
||||
@@ -289,7 +289,6 @@ export class DialogHelperDetail extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this._domain
|
||||
? this.hass.localize(
|
||||
|
||||
@@ -80,7 +80,6 @@ class DialogScheduleBlockInfo extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass!.localize(
|
||||
"ui.dialogs.helper_settings.schedule.edit_schedule_block"
|
||||
|
||||
@@ -389,7 +389,6 @@ class AddIntegrationDialog extends LitElement {
|
||||
: this.hass.localize("ui.panel.config.integrations.new");
|
||||
|
||||
return html`<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${headerTitle}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -39,7 +39,6 @@ export class DialogPickConfigEntry extends LitElement {
|
||||
);
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${title}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -42,7 +42,6 @@ export class DialogYamlIntegration extends LitElement {
|
||||
: manifest.documentation;
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_flow.yaml_only_title"
|
||||
|
||||
@@ -57,7 +57,6 @@ class DialogBluetoothDeviceInfo extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.bluetooth.device_information"
|
||||
|
||||
@@ -174,7 +174,6 @@ class DialogMatterAddDevice extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${title}
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -85,7 +85,6 @@ class DialogMatterLockManage extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.matter.lock.dialog_title"
|
||||
|
||||
@@ -76,7 +76,6 @@ class DialogMatterLockUserEdit extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${title}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -48,7 +48,6 @@ class DialogMatterManageFabrics extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.matter.manage_fabrics.title"
|
||||
|
||||
@@ -43,7 +43,6 @@ class DialogMatterOpenCommissioningWindow extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.matter.open_commissioning_window.title"
|
||||
|
||||
@@ -51,7 +51,6 @@ class DialogMatterPingNode extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.matter.ping_node.title"
|
||||
|
||||
@@ -36,7 +36,6 @@ class DialogMatterReinterviewNode extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.matter.reinterview_node.title"
|
||||
|
||||
@@ -63,7 +63,6 @@ class DialogSSDPDiscoveryInfo extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.ssdp.discovery_information"
|
||||
|
||||
@@ -41,7 +41,6 @@ class DialogSSDPRawData extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${`${this.hass.localize("ui.panel.config.ssdp.raw_data_title")}: ${this._params.key}`}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -43,7 +43,6 @@ class DialogThreadDataset extends LitElement {
|
||||
otbrInfo.active_dataset_tlvs?.includes(dataset.extended_pan_id);
|
||||
|
||||
return html`<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${network.name}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -52,7 +52,6 @@ class DialogZeroconfDiscoveryInfo extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.zeroconf.discovery_information"
|
||||
|
||||
@@ -78,7 +78,6 @@ class DialogZHAChangeChannel
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.zha.change_channel_dialog.title"
|
||||
|
||||
@@ -96,7 +96,6 @@ class DialogZHAManageZigbeeDevice extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
prevent-scrim-close
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -80,7 +80,6 @@ class DialogZHAReconfigureDevice extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
width="large"
|
||||
header-title=${this.hass.localize(
|
||||
|
||||
@@ -141,7 +141,6 @@ class DialogZWaveJSAddNode extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
?prevent-scrim-close=${preventClose}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -58,7 +58,6 @@ class DialogZWaveJSHardResetController extends LitElement {
|
||||
}
|
||||
|
||||
return html`<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
`ui.panel.config.zwave_js.hard_reset_controller.${
|
||||
|
||||
@@ -84,7 +84,6 @@ class DialogZWaveJSNodeStatistics extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.zwave_js.node_statistics.title"
|
||||
|
||||
@@ -55,7 +55,6 @@ class DialogZWaveJSRebuildNodeRoutes extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.zwave_js.rebuild_node_routes.title"
|
||||
|
||||
@@ -42,7 +42,6 @@ class DialogZWaveJSReinterviewNode extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.zwave_js.reinterview_node.title"
|
||||
|
||||
@@ -117,7 +117,6 @@ class DialogZWaveJSRemoveNode extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${dialogTitle}
|
||||
prevent-scrim-close
|
||||
|
||||
@@ -195,7 +195,6 @@ class DialogZWaveJSUpdateFirmwareNode extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.zwave_js.update_firmware.title"
|
||||
|
||||
@@ -145,7 +145,6 @@ export class DialogLabsPreviewFeatureEnable
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize("ui.panel.config.labs.enable_title")}
|
||||
@closed=${this._dialogClosed}
|
||||
|
||||
@@ -40,7 +40,6 @@ export class DialogLabsProgress
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
prevent-scrim-close
|
||||
@closed=${this._handleClosed}
|
||||
|
||||
@@ -67,7 +67,6 @@ class DownloadLogsDialog extends LitElement {
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize("ui.panel.config.logs.download_logs")}
|
||||
header-subtitle=${headerSubtitle}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user