mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Summary columns improvemnt.
Summary: Improving user experience on summary columns. - Showing 'not-allowed' cursor on sections/menus that can't be changed - Disabling menu options and buttons in the column behavior section that converts a formula column to a data column - Showing nicer error message about converting formula to a data column. Test Plan: manual tests, no behavior change Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3222
This commit is contained in:
@@ -120,7 +120,11 @@ export function reportError(err: Error|string): void {
|
||||
} else if (code === 'AUTH_NO_EDIT' || code === 'ACL_DENY') {
|
||||
// Show the error as a message
|
||||
_notifier.createUserMessage(err.message, {key: code, memos: details?.memos});
|
||||
} else {
|
||||
} else if (message.match(/\[Sandbox\].*between formula and data/)) {
|
||||
// Show nicer error message for summary tables.
|
||||
_notifier.createUserMessage("Summary tables can only contain formula columns.",
|
||||
{key: 'summary', actions: ['ask-for-help']});
|
||||
} else {
|
||||
// If we don't recognize it, consider it an application error (bug) that the user should be
|
||||
// able to report.
|
||||
if (details?.userError) {
|
||||
|
||||
Reference in New Issue
Block a user