mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 11:14:21 +01:00
This commit is contained in:
parent
1e13177aae
commit
7ac9dd519e
1 changed files with 2 additions and 2 deletions
|
|
@ -449,7 +449,7 @@ export const bazaar = {
|
|||
</span>
|
||||
<span class="fn__space${bazaarType === "plugins" ? "" : " fn__none"}"></span>
|
||||
<span class="fn__space${bazaarType === "plugins" ? "" : " fn__none"}"></span>
|
||||
<input class="b3-switch fn__flex-center${bazaarType === "plugins" ? "" : " fn__none"}" ${item.enabled ? "checked" : ""} data-type="plugin-enable" type="checkbox" ${item.incompatible ? " disabled" : ""}>
|
||||
<input ${(item.disallowInstall && !item.enabled || item.incompatible) ? "disabled" : ""} aria-label="${(item.disallowInstall && !item.enabled) ? window.siyuan.languages.bazaarNeedVersion.replace("${x}", item.minAppVersion) : ""}" class="b3-tooltips b3-tooltips__nw b3-switch fn__flex-center${bazaarType === "plugins" ? "" : " fn__none"}" ${item.enabled ? "checked" : ""} data-type="plugin-enable" type="checkbox">
|
||||
</div>
|
||||
</div>`;
|
||||
});
|
||||
|
|
@ -880,7 +880,7 @@ export const bazaar = {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "plugin-enable") {
|
||||
if (!target.getAttribute("disabled")) {
|
||||
if (!target.hasAttribute("disabled")) {
|
||||
target.setAttribute("disabled", "disabled");
|
||||
const enabled = (target as HTMLInputElement).checked;
|
||||
fetchPost("/api/petal/setPetalEnabled", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue