mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
8ee5c07231
commit
ebe93856e0
6 changed files with 274 additions and 130 deletions
|
|
@ -23,6 +23,7 @@ import {openSetting} from "../config";
|
|||
import {getSearch} from "./functions";
|
||||
import {openHistory} from "./history";
|
||||
import {initStatus} from "../layout/status";
|
||||
import {syncGuide} from "../sync/syncGuide";
|
||||
|
||||
const matchKeymap = (keymap: Record<string, IKeymapItem>, key1: "general" | "editor", key2?: "general" | "insert" | "heading" | "list" | "table") => {
|
||||
if (key1 === "general") {
|
||||
|
|
@ -205,14 +206,7 @@ const initBar = () => {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.id === "barSync") {
|
||||
if (needSubscribe() || target.firstElementChild.classList.contains("fn__rotate")) {
|
||||
return;
|
||||
}
|
||||
if (!window.siyuan.config.sync.enabled) {
|
||||
showMessage(window.siyuan.languages._kernel[124]);
|
||||
return;
|
||||
}
|
||||
fetchPost("/api/sync/performSync", {});
|
||||
syncGuide(target.firstElementChild);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.id === "barForward") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue