Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/10568

Vanessa8675b49daa76
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index 7b88da6384..97478c4783 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -1,5 +1,5 @@
{
- "insertRowTip": "New rows have been filtered, you can cancel the filtering to view",
+ "insertRowTip": "The newly added rows have been filtered and can be viewed by canceling filtering/searching/sorting",
"insertRowTip2": "New rows do not participate in sorting",
"insertPhoto": "Take a photo and insert it",
"relativeToToday": "Relative to today",
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index b0f58eb812..077fcd39bb 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -1,5 +1,5 @@
{
- "insertRowTip": "Se han filtrado nuevas filas, puede cancelar el filtrado para ver",
+ "insertRowTip": "Las filas recién agregadas se han filtrado y se pueden ver cancelando el filtrado/búsqueda/clasificación",
"insertRowTip2": "Las filas nuevas no participan en la clasificación",
"insertPhoto": "Toma una foto e insértala",
"relativeToToday": "Relativa a hoy",
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index 44a3549ec4..287d51d00b 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -1,5 +1,5 @@
{
- "insertRowTip": "De nouvelles lignes ont été filtrées, vous pouvez annuler le filtrage pour afficher",
+ "insertRowTip": "Les lignes nouvellement ajoutées ont été filtrées et peuvent être visualisées en annulant le filtrage/recherche/tri",
"insertRowTip2": "Les nouvelles lignes ne participent pas au tri",
"insertPhoto": "Prendre une photo et l'insérer",
"relativeToToday": "Par rapport à aujourd'hui",
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index 9cb2d4ffca..8fc2c48aab 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -1,5 +1,5 @@
{
- "insertRowTip": "新增行已被過濾,可取消過濾進行檢視",
+ "insertRowTip": "新增行已被過濾,可取消過濾/搜尋/排序進行查看",
"insertRowTip2": "新增行不參與排序",
"insertPhoto": "拍照並插入",
"relativeToToday": "相對於今天",
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index 5b9f1c4dca..fb3055ccce 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1,5 +1,5 @@
{
- "insertRowTip": "新增行已被过滤,可取消过滤进行查看",
+ "insertRowTip": "新增行已被过滤,可取消过滤/搜索/排序进行查看",
"insertRowTip2": "新增行不参与排序",
"insertPhoto": "拍照并插入",
"relativeToToday": "相对于今天",
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index 6ceac17ef8..0912271daa 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -124,6 +124,10 @@ ${(item.getAttribute("data-block-id") || item.dataset.dtype === "block") ? ' dat
previousElement.insertAdjacentHTML("afterend", html);
if (avId) {
const currentRow = previousElement.nextElementSibling;
+ if (blockElement.querySelector('.av__views [data-type="av-sort"]').classList.contains("block__icon--active") &&
+ !blockElement.querySelector('[data-type="av-load-more"]').parentElement.classList.contains("fn__none")) {
+ currentRow.setAttribute("data-need-update", "true");
+ }
const sideRow = previousElement.classList.contains("av__row--header") ? currentRow.nextElementSibling : previousElement;
fetchPost("/api/av/getAttributeViewFilterSort", {
id: avId,