mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) New document settings page
Summary: This diff implement new page for document settings which replaces the old modal settings. Diff also adds a new `Settings + API` page item below tools in the left panel that link to that very doc settings page. Test Plan: Updated existing tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3761
This commit is contained in:
@@ -91,6 +91,14 @@ export function tools(owner: Disposable, gristDoc: GristDoc, leftPanelOpen: Obse
|
||||
),
|
||||
testId('code'),
|
||||
),
|
||||
cssPageEntry(
|
||||
cssPageEntry.cls('-selected', (use) => use(gristDoc.activeViewId) === 'settings'),
|
||||
cssPageLink(cssPageIcon('Settings'),
|
||||
cssLinkText(t("Settings")),
|
||||
urlState().setLinkUrl({docPage: 'settings'})
|
||||
),
|
||||
testId('settings'),
|
||||
),
|
||||
cssSpacer(),
|
||||
dom.maybe(docPageModel.currentDoc, (doc) => {
|
||||
const ex = buildExamples().find(e => e.urlId === doc.urlId);
|
||||
|
||||
Reference in New Issue
Block a user