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-header>
|
||||
|
||||
<template is='dom-if' if='[[computeIsHassbianLoaded(hass)]]'>
|
||||
<ha-config-section-hassbian
|
||||
narrow='[[narrow]]'
|
||||
show-menu='[[showMenu]]'
|
||||
hass='[[hass]]'
|
||||
></ha-config-section-hassbian>
|
||||
</template>
|
||||
</app-header-layout>
|
||||
</template>
|
||||
</dom-module>
|
||||
@ -48,5 +50,9 @@ Polymer({
|
||||
value: false,
|
||||
},
|
||||
},
|
||||
|
||||
computeIsHassbianLoaded(hass) {
|
||||
return window.hassUtil.isComponentLoaded(hass, 'config.hassbian');
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user