This commit is contained in:
Vanessa 2023-05-22 22:30:01 +08:00
parent 2c7a58d3b9
commit 7d41575c2f
5 changed files with 18 additions and 7 deletions

View file

@ -491,8 +491,19 @@ export const bazaar = {
});
return;
}
bazaar._genMyHTML(bazaarType, app);
bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType));
bazaar._genMyHTML(bazaarType, app);
if (bazaarType === "plugins") {
confirmDialog(window.siyuan.languages.confirm, window.siyuan.languages.enablePluginTip, () => {
fetchPost("/api/petal/setPetalEnabled", {
packageName: dataObj.name,
enabled: true,
}, (response) => {
loadPlugin(app, response.data);
bazaar._genMyHTML(bazaarType, app);
});
});
}
});
}
event.preventDefault();