mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
do not count unready translations in localization test (#480)
This updates the expected count of languages in a localization test to omit translations that have been started but are not yet ready to be offered to users by default.
This commit is contained in:
@@ -1317,7 +1317,7 @@ export class GristDoc extends DisposableWithEvents {
|
||||
const options = section.options();
|
||||
const colIds = section.viewFields().all().map((f) => f.column().colId());
|
||||
const chartType = section.chartType();
|
||||
const theme = section.theme();
|
||||
const sectionTheme = section.theme();
|
||||
|
||||
// we must read the current layout from the view layout because it can override the one in
|
||||
// `section.layoutSpec` (in particular it provides a default layout when missing from the
|
||||
@@ -1351,7 +1351,7 @@ export class GristDoc extends DisposableWithEvents {
|
||||
}
|
||||
|
||||
// update theme, and chart type
|
||||
await newSection.theme.saveOnly(theme);
|
||||
await newSection.theme.saveOnly(sectionTheme);
|
||||
await newSection.chartType.saveOnly(chartType);
|
||||
|
||||
// The newly-added section should be given focus.
|
||||
|
||||
Reference in New Issue
Block a user