mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Change 'Clear ... column' menu options to 'Reset', and make resetting columns reset type too
Summary: The renaming is to clarify that the operation is more of a schema change, than a data update. In particular, this is to reduce confusion why it is allowed to anyone having Structure permission in Access Rules. The resetting of type is a separate but related cleanup. Changing type to Any returns the column to initial state, letting it guess type from new data, and making it easy to enter a formula. It applies also to the "Clear and reset" option in the Creator Panel. Test Plan: Updated tests, added a check for type changing to Any. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3685
This commit is contained in:
@@ -156,11 +156,14 @@ describe('MultiColumn', function() {
|
||||
]);
|
||||
await selectColumns('Test1', 'Test3');
|
||||
assert.equal(await columnBehavior(), 'Formula Columns');
|
||||
await alignment('center');
|
||||
assert.equal(await alignment(), 'center');
|
||||
|
||||
// Reset all of them
|
||||
assert.deepEqual(await gu.availableBehaviorOptions(), ['Convert columns to data', 'Clear and reset']);
|
||||
await gu.changeBehavior('Clear and reset');
|
||||
assert.equal(await columnBehavior(), 'Empty Columns');
|
||||
assert.equal(await alignment(), 'left');
|
||||
|
||||
// Make them all data columns
|
||||
await gu.getCell('Test1', 1).click(); await gu.enterCell('a');
|
||||
|
||||
Reference in New Issue
Block a user