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