mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Fix tests
This commit is contained in:
@@ -72,7 +72,7 @@ export class TypeTransform extends ColumnTransform {
|
||||
return basicButton(dom.on('click', () => this.editor.writeObservable()),
|
||||
t('Preview'), testId("type-transform-update"),
|
||||
dom.cls('disabled', (use) => use(disableButtons) || use(this.formulaUpToDate)),
|
||||
{ title: t('UpdateFormula') }
|
||||
{ title: t('Update formula (Shift+Enter)') }
|
||||
);
|
||||
} else {
|
||||
return basicButton(dom.on('click', () => { this._reviseTypeChange.set(true); }),
|
||||
|
||||
@@ -135,10 +135,10 @@ export function MultiColumnMenu(options: IMultiColumnContextMenu) {
|
||||
const disableForReadonlyView = dom.cls('disabled', options.isReadonly);
|
||||
const num: number = options.numColumns;
|
||||
const nameClearColumns = options.isFiltered ?
|
||||
t('ResetEntireColumns', {count: num}) :
|
||||
t('ResetColumns', {count: num});
|
||||
const nameDeleteColumns = t('DeleteColumns', {count: num});
|
||||
const nameHideColumns = t('HideColumns', {count: num});
|
||||
t('Reset {{count}} entire columns', {count: num}) :
|
||||
t('Reset {{count}} columns', {count: num});
|
||||
const nameDeleteColumns = t('Delete {{count}} columns', {count: num});
|
||||
const nameHideColumns = t('Hide {{count}} columns', {count: num});
|
||||
const frozenMenu = options.disableFrozenMenu ? null : freezeMenuItemCmd(options);
|
||||
return [
|
||||
frozenMenu ? [frozenMenu, menuDivider()]: null,
|
||||
@@ -229,7 +229,7 @@ export function freezeAction(options: IMultiColumnContextMenu): { text: string;
|
||||
const properNumber = numFrozen - firstColumnIndex;
|
||||
text = properNumber === numFrozen ?
|
||||
t('Unfreeze all columns') :
|
||||
t('UnFreeze {{count}} columns', {count: properNumber});
|
||||
t('Unfreeze {{count}} columns', {count: properNumber});
|
||||
}
|
||||
return {
|
||||
text,
|
||||
@@ -240,13 +240,13 @@ export function freezeAction(options: IMultiColumnContextMenu): { text: string;
|
||||
}
|
||||
} else {
|
||||
if (isLastFrozenSet) {
|
||||
text = t('UnfreezeColumn', {count: length});
|
||||
text = t('Unfreeze {{count}} columns', {count: length});
|
||||
return {
|
||||
text,
|
||||
numFrozen : numFrozen - length
|
||||
};
|
||||
} else if (isFirstNormalSet) {
|
||||
text = t('FreezeColumn', {count: length});
|
||||
text = t('Freeze {{count}} columns', {count: length});
|
||||
return {
|
||||
text,
|
||||
numFrozen : numFrozen + length
|
||||
|
||||
@@ -51,7 +51,7 @@ export class SortFilterConfig extends Disposable {
|
||||
}
|
||||
|
||||
private async _save() {
|
||||
await this._docModel.docData.bundleActions(t('UpdateSortFilterSettings'), () => Promise.all([
|
||||
await this._docModel.docData.bundleActions(t('Update Sort & Filter settings'), () => Promise.all([
|
||||
this._section.activeSortJson.save(),
|
||||
this._section.saveFilters(),
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user