mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Skip saving column resizes in read-only mode
Summary: This makes it so a notification about insufficient write access is no longer shown every time a user in a read-only document resizes a column. Test Plan: Browser test. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3171
This commit is contained in:
@@ -890,7 +890,7 @@ GridView.prototype.buildDom = function() {
|
||||
dom.testId("GridView_columnLabel"),
|
||||
kd.style('width', field.widthPx),
|
||||
kd.style('borderRightWidth', v.borderWidthPx),
|
||||
viewCommon.makeResizable(field.width),
|
||||
viewCommon.makeResizable(field.width, {shouldSave: !this.gristDoc.isReadonly.get()}),
|
||||
kd.toggleClass('selected', () => ko.unwrap(this.isColSelected.at(field._index()))),
|
||||
dom.on('contextmenu', ev => {
|
||||
// This is a little hack to position the menu the same way as with a click
|
||||
|
||||
Reference in New Issue
Block a user