mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Fix navigation links for "script/edit" (#7363)
This commit is contained in:
parent
a7998b30c6
commit
e603893d77
@ -261,11 +261,7 @@ class HaConfigAreaPage extends LitElement {
|
|||||||
return state
|
return state
|
||||||
? html`
|
? html`
|
||||||
<a
|
<a
|
||||||
href=${ifDefined(
|
href=${`/config/script/edit/${state.entity_id}`}
|
||||||
state.attributes.id
|
|
||||||
? `/config/script/edit/${state.attributes.id}`
|
|
||||||
: undefined
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<paper-item>
|
<paper-item>
|
||||||
<paper-item-body>
|
<paper-item-body>
|
||||||
|
@ -420,11 +420,7 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
return state
|
return state
|
||||||
? html`
|
? html`
|
||||||
<a
|
<a
|
||||||
href=${ifDefined(
|
href=${`/config/script/edit/${state.entity_id}`}
|
||||||
state.attributes.id
|
|
||||||
? `/config/script/edit/${state.attributes.id}`
|
|
||||||
: undefined
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<paper-item .script=${script}>
|
<paper-item .script=${script}>
|
||||||
<paper-item-body>
|
<paper-item-body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user