mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
parent
7fb1e699ae
commit
262b12eb93
@ -57,8 +57,10 @@ export class DialogLovelaceDashboardDetail extends LitElement {
|
||||
if (!this._params) {
|
||||
return html``;
|
||||
}
|
||||
const urlInvalid = !/^[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+$/.test(this._urlPath);
|
||||
const titleInvalid = !this._urlPath.trim();
|
||||
const urlInvalid =
|
||||
this._params.urlPath !== "lovelace" &&
|
||||
!/^[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+$/.test(this._urlPath);
|
||||
const titleInvalid = !this._title.trim();
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
|
@ -204,8 +204,8 @@ export const haStyleDialog = css`
|
||||
--mdc-dialog-min-width: 400px;
|
||||
--mdc-dialog-max-width: 600px;
|
||||
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
||||
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
||||
--justify-action-buttons: space-between;
|
||||
color: var(--primary-text-color);
|
||||
}
|
||||
|
||||
ha-dialog .form {
|
||||
|
Loading…
x
Reference in New Issue
Block a user