mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +00:00
Add empty state to addons list
This commit is contained in:
parent
b64c9548bc
commit
015e7bc51d
@ -17,6 +17,11 @@
|
||||
}
|
||||
</style>
|
||||
<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'>
|
||||
<paper-item>
|
||||
<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 });
|
||||
ev.target.blur();
|
||||
},
|
||||
|
||||
openStore: function (ev) {
|
||||
ev.preventDefault();
|
||||
this.fire('hassio-show-page', { page: 'addon-store' });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user