mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Improve the mouse hove data sync button information on the desktop and browser https://github.com/siyuan-note/siyuan/issues/8521
This commit is contained in:
parent
d138e5c04c
commit
1b8adb473c
1 changed files with 3 additions and 3 deletions
|
|
@ -30,14 +30,14 @@ func getSyncInfo(c *gin.Context) {
|
||||||
ret := gulu.Ret.NewResult()
|
ret := gulu.Ret.NewResult()
|
||||||
defer c.JSON(http.StatusOK, ret)
|
defer c.JSON(http.StatusOK, ret)
|
||||||
|
|
||||||
|
stat := model.Conf.Sync.Stat
|
||||||
if !model.Conf.Sync.Enabled {
|
if !model.Conf.Sync.Enabled {
|
||||||
ret.Msg = model.Conf.Language(53)
|
stat = model.Conf.Language(53)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.Data = map[string]interface{}{
|
ret.Data = map[string]interface{}{
|
||||||
"synced": model.Conf.Sync.Synced,
|
"synced": model.Conf.Sync.Synced,
|
||||||
"stat": model.Conf.Sync.Stat,
|
"stat": stat,
|
||||||
"kernels": model.GetOnlineKernels(),
|
"kernels": model.GetOnlineKernels(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue