浏览代码

:art: 为同步状态添加对应的图标 https://github.com/siyuan-note/siyuan/issues/7041

Liang Ding 2 年之前
父节点
当前提交
85a6c5e85d

+ 1 - 1
app/appearance/langs/en_US.json

@@ -928,7 +928,7 @@
     "50": "Resolving reference [%s]",
     "51": "Cache content block [%d]",
     "52": "Every time you open the user guide notebook data will be reset, so please do not save any data in it",
-    "53": "TODO",
+    "53": "Data synchronization has not been enabled",
     "54": "Indexing references...",
     "55": "Indexed references of [%d] documents",
     "56": "TODO",

+ 1 - 1
app/appearance/langs/es_ES.json

@@ -928,7 +928,7 @@
     "50": "Resolviendo referencia [%s]",
     "51": "Bloque de contenido de la caché [%d]",
     "52": "Cada vez que abra la guía del usuario se restablecerán los datos del cuaderno, así que no guarde ningún dato en ella",
-    "53": "TODO",
+    "53": "No se ha habilitado la sincronizacion de datos",
     "54": "Indexando referencias...",
     "55": "Referencias indexadas de [%d] documentos",
     "56": "TODO",

+ 1 - 1
app/appearance/langs/fr_FR.json

@@ -928,7 +928,7 @@
     "50": "Résolution des référence [%s]",
     "51": "Blocage du contenu du cache [%d]",
     "52": "Chaque fois que vous ouvrez le guide de l'utilisateur, les données du notebook seront réinitialisées, veuillez donc ne pas y enregistrer de données.",
-    "53": "TODO",
+    "53": "La synchronisation des données n'a pas été activée",
     "54": "Indexation des références...",
     "55": "Références indexées de [%d] documents",
     "56": "TODO",

+ 1 - 1
app/appearance/langs/zh_CHT.json

@@ -928,7 +928,7 @@
     "50": "正在解析引用 [%s]",
     "51": "正在快取內容塊 [%d]",
     "52": "每次打開使用者指南筆記本資料都會被重置,所以請勿在其中保存任何資料",
-    "53": "TODO",
+    "53": "數據同步尚未啟用",
     "54": "正在索引引用關係...",
     "55": "已完成索引 [%d] 篇文檔的引用關係",
     "56": "TODO",

+ 1 - 1
app/appearance/langs/zh_CN.json

@@ -928,7 +928,7 @@
     "50": "正在解析引用 [%s]",
     "51": "正在缓存内容块 [%d]",
     "52": "每次打开用户指南笔记本数据都会被重置,所以请勿在其中保存任何数据",
-    "53": "TODO",
+    "53": "数据同步尚未启用",
     "54": "正在索引引用关系...",
     "55": "已完成索引 [%d] 篇文档的引用关系",
     "56": "TODO",

+ 4 - 0
kernel/api/system.go

@@ -153,6 +153,10 @@ func getConf(c *gin.Context) {
 		return
 	}
 
+	if !maskedConf.Sync.Enabled || (0 == maskedConf.Sync.Provider && !model.IsSubscriber()) {
+		maskedConf.Sync.Stat = model.Conf.Language(53)
+	}
+
 	ret.Data = map[string]interface{}{
 		"conf":  maskedConf,
 		"start": start,