Only show stable add-ons in the store if not advanced mode (#11596)

This commit is contained in:
Joakim Sørensen 2022-02-07 23:18:52 +01:00 committed by GitHub
parent 2d33327d88
commit 6a51e2aaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,9 @@ class HassioAddonRepositoryEl extends LitElement {
const repo = this.repo;
let _addons = this.addons;
if (!this.hass.userData?.showAdvanced) {
_addons = _addons.filter((addon) => !addon.advanced);
_addons = _addons.filter(
(addon) => !addon.advanced && addon.stage === "stable"
);
}
const addons = this._getAddons(_addons, this.filter);