diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts
index c895ba287..113911991 100644
--- a/app/src/config/bazaar.ts
+++ b/app/src/config/bazaar.ts
@@ -83,6 +83,7 @@ export const bazaar = {
+
@@ -292,6 +293,11 @@ export const bazaar = {
`;
},
+ _getUpdate() {
+ fetchPost("/api/bazaar/getUpdatedPackage", {frontend: getFrontend()}, (response) => {
+ this.element.querySelector('[data-type="downloaded-update"]').innerHTML = `
`
+ })
+ },
_genMyHTML(bazaarType: TBazaarType, app: App) {
const contentElement = bazaar.element.querySelector("#configBazaarDownloaded");
if (contentElement.getAttribute("data-loading") === "true" ||
@@ -535,6 +541,7 @@ export const bazaar = {
return;
}
this._genMyHTML("plugins", app);
+ this._getUpdate();
bazaar.element.firstElementChild.addEventListener("click", (event) => {
let target = event.target as HTMLElement;
const dataElement = hasClosestByAttribute(target, "data-obj", null);