mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Load hassbian on demand
This commit is contained in:
parent
cce4c853c9
commit
ba48e40a2b
@ -21,11 +21,13 @@
|
|||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
</app-header>
|
</app-header>
|
||||||
|
|
||||||
<ha-config-section-hassbian
|
<template is='dom-if' if='[[computeIsHassbianLoaded(hass)]]'>
|
||||||
narrow='[[narrow]]'
|
<ha-config-section-hassbian
|
||||||
show-menu='[[showMenu]]'
|
narrow='[[narrow]]'
|
||||||
hass='[[hass]]'
|
show-menu='[[showMenu]]'
|
||||||
></ha-config-section-hassbian>
|
hass='[[hass]]'
|
||||||
|
></ha-config-section-hassbian>
|
||||||
|
</template>
|
||||||
</app-header-layout>
|
</app-header-layout>
|
||||||
</template>
|
</template>
|
||||||
</dom-module>
|
</dom-module>
|
||||||
@ -48,5 +50,9 @@ Polymer({
|
|||||||
value: false,
|
value: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computeIsHassbianLoaded(hass) {
|
||||||
|
return window.hassUtil.isComponentLoaded(hass, 'config.hassbian');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user