🎨 One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390

This commit is contained in:
Daniel 2024-03-21 23:21:16 +08:00
parent b64770d595
commit 180bac66ef
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -707,7 +707,7 @@ export const bazaar = {
event.stopPropagation(); event.stopPropagation();
break; break;
} else if (type === "install-all") { } else if (type === "install-all") {
confirmDialog(window.siyuan.languages.updateAll, window.siyuan.languages.confirmUpdateAll, () => { confirmDialog('⬆️ ' + window.siyuan.languages.updateAll, window.siyuan.languages.confirmUpdateAll, () => {
fetchPost("/api/bazaar/batchUpdatePackage", {frontend: getFrontend()}); fetchPost("/api/bazaar/batchUpdatePackage", {frontend: getFrontend()});
}); });
event.preventDefault(); event.preventDefault();
@ -715,7 +715,7 @@ export const bazaar = {
break; break;
} else if (type === "install-t") { } else if (type === "install-t") {
if (!target.classList.contains("b3-button--progress")) { if (!target.classList.contains("b3-button--progress")) {
confirmDialog(window.siyuan.languages.update, window.siyuan.languages.confirmUpdate, () => { confirmDialog('⬆️ ' + window.siyuan.languages.update, window.siyuan.languages.confirmUpdate, () => {
const bazaarType = dataObj.bazaarType as TBazaarType; const bazaarType = dataObj.bazaarType as TBazaarType;
let url = "/api/bazaar/installBazaarTemplate"; let url = "/api/bazaar/installBazaarTemplate";
if (bazaarType === "themes") { if (bazaarType === "themes") {