Skip to content

Commit

Permalink
🎨 One-click upgrade of downloaded marketplace packages #8390
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 21, 2024
1 parent b64770d commit 180bac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/config/bazaar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,15 @@ export const bazaar = {
event.stopPropagation();
break;
} 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()});
});
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "install-t") {
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;
let url = "/api/bazaar/installBazaarTemplate";
if (bazaarType === "themes") {
Expand Down

0 comments on commit 180bac6

Please sign in to comment.