mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +00:00
Add empty state to addons list
This commit is contained in:
parent
b64c9548bc
commit
015e7bc51d
@ -17,6 +17,11 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<paper-card heading="Installed Addons">
|
<paper-card heading="Installed Addons">
|
||||||
|
<template is='dom-if' if='[[!data.length]]'>
|
||||||
|
<div class='card-content'>
|
||||||
|
Looks like you don't have any add-ons installed yet. Head over to <a href='#' on-tap='openStore'>the add-on store</a> to get started!
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template is='dom-repeat' items='[[data]]' as='addon'>
|
<template is='dom-repeat' items='[[data]]' as='addon'>
|
||||||
<paper-item>
|
<paper-item>
|
||||||
<paper-item-body two-line on-tap='addonTapped'>
|
<paper-item-body two-line on-tap='addonTapped'>
|
||||||
@ -58,5 +63,10 @@ Polymer({
|
|||||||
this.fire('hassio-select-addon', { addon: this.data[ev.model.index].slug });
|
this.fire('hassio-select-addon', { addon: this.data[ev.model.index].slug });
|
||||||
ev.target.blur();
|
ev.target.blur();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
openStore: function (ev) {
|
||||||
|
ev.preventDefault();
|
||||||
|
this.fire('hassio-show-page', { page: 'addon-store' });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user