mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Remove hardcoded core repo from hassio store
This commit is contained in:
parent
cc8e3fd22b
commit
9e7dc4a921
@ -58,13 +58,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
Polymer({
|
Polymer({
|
||||||
_coreRepos: [{
|
|
||||||
slug: 'core',
|
|
||||||
name: 'Built-in Add-Ons',
|
|
||||||
url: 'https://home-assistant.io/addons',
|
|
||||||
maintainer: 'Home Assistant authors',
|
|
||||||
}],
|
|
||||||
|
|
||||||
is: 'hassio-addon-store',
|
is: 'hassio-addon-store',
|
||||||
|
|
||||||
properties: {
|
properties: {
|
||||||
@ -114,7 +107,7 @@ Polymer({
|
|||||||
this.hass.callApi('get', 'hassio/supervisor/addons')
|
this.hass.callApi('get', 'hassio/supervisor/addons')
|
||||||
.then(function (info) {
|
.then(function (info) {
|
||||||
this.addons = info.data.addons;
|
this.addons = info.data.addons;
|
||||||
this.repos = this._coreRepos.concat(info.data.repositories);
|
this.repos = info.data.repositories;
|
||||||
}.bind(this), function () {
|
}.bind(this), function () {
|
||||||
this.addons = [];
|
this.addons = [];
|
||||||
this.repos = [];
|
this.repos = [];
|
||||||
|
@ -59,7 +59,7 @@ Polymer({
|
|||||||
},
|
},
|
||||||
|
|
||||||
computeInstallStatus(addon) {
|
computeInstallStatus(addon) {
|
||||||
return addon && addon.installed || 'Not installed';
|
return (addon && addon.installed) || 'Not installed';
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user