Skip to content

Commit a21026e

Browse files
committed
fix: save dashboard
1 parent d5e5643 commit a21026e

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

src/frontend/platform/public/locales/ja/dashboard.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
"editDashboard": "看板を編集",
383383
"editAfterUnpublish": "編集するには公開を中止してください",
384384
"updatingCharts": "チャートを更新中",
385-
"noDataInChart": "このチャートにはデータがありません",
385+
"noDataInChart": "チャートデータなし",
386386
"selectDate": "日付を選択",
387387
"query": "照会",
388388
"dashboardOffline": "このダッシュボードは現在オフラインです",

src/frontend/platform/src/pages/BuildPage/flow/FlowNode/component/VarInput.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,21 @@ export default function VarInput({
119119
if (valueRef.current && valueRef.current !== value) {
120120
valueRef.current = value;
121121
}
122-
textareaRef.current.innerHTML = parseToHTML(value || '')[0];
122+
if (!full) {
123+
textareaRef.current.innerHTML = parseToHTML(value || '')[0];
124+
}
123125
setFullVarInputValue(value)
124126
placeholderInit();
125127
}, [value]);
126128

129+
// firefox hack
130+
useEffect(() => {
131+
if (full) {
132+
textareaRef.current.innerHTML = parseToHTML(value || '')[0];
133+
placeholderInit();
134+
}
135+
}, [])
136+
127137
// Update Preset Questions
128138
const [updateVariable] = useUpdateVariableState()
129139
useEffect(() => {

src/frontend/platform/src/pages/Dashboard/components/charts/QueryFilter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export function QueryFilter({ isDark, component, isPreviewMode = false }: QueryF
7070
mode={queryConditions.displayType}
7171
isDark={isDark}
7272
value={filter}
73+
placeholder={t('selectTime')}
7374
onChange={(val) => {
7475
console.log("Day Range Change:", val);
7576
setFilter(val);

src/frontend/platform/src/pages/Dashboard/components/config/ComponentConfigDrawer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ export function ComponentConfigDrawer() {
424424
}
425425

426426
const dataConfig = getDataConfig(limitType, limitValue, editingComponent.data_config?.timeFilter)
427-
dataConfig.isConfigured = e.isTrusted
428427
if (styleConfig.title === '' && editingComponent?.data_config?.metrics?.[0]?.fieldName) {
429428
styleConfig.title = editingComponent?.data_config?.metrics?.[0]?.fieldName
430429
}

0 commit comments

Comments
 (0)