mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Rename page option 'Duplicate' to 'Duplicate Page', and shorten warning to be more noticeable
Test Plan: Changes too minor to affect tests Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3016
This commit is contained in:
parent
ddcd08e147
commit
70160fe01c
@ -22,13 +22,12 @@ export async function duplicatePage(gristDoc: GristDoc, pageId: number) {
|
|||||||
|
|
||||||
confirmModal('Duplicate page', 'Save', () => makeDuplicate(gristDoc, pageId, inputEl.value), (
|
confirmModal('Duplicate page', 'Save', () => makeDuplicate(gristDoc, pageId, inputEl.value), (
|
||||||
dom('div', [
|
dom('div', [
|
||||||
"Enter name for the new page. ",
|
|
||||||
"Note that this does not copy data, ",
|
|
||||||
"but creates another view of the same data. ",
|
|
||||||
cssField(
|
cssField(
|
||||||
cssLabel("Name"),
|
cssLabel("Name"),
|
||||||
inputEl = cssInput({value: pageName + ' (copy)'}),
|
inputEl = cssInput({value: pageName + ' (copy)'}),
|
||||||
)
|
),
|
||||||
|
"Note that this does not copy data, ",
|
||||||
|
"but creates another view of the same data.",
|
||||||
])
|
])
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ export function buildPageDom(name: Observable<string>, actions: PageActions, ...
|
|||||||
dom.cls('disabled', actions.isReadonly)),
|
dom.cls('disabled', actions.isReadonly)),
|
||||||
menuItem(actions.onRemove, 'Remove', testId('remove'),
|
menuItem(actions.onRemove, 'Remove', testId('remove'),
|
||||||
dom.cls('disabled', (use) => use(actions.isReadonly) || actions.isRemoveDisabled())),
|
dom.cls('disabled', (use) => use(actions.isReadonly) || actions.isRemoveDisabled())),
|
||||||
menuItem(actions.onDuplicate, 'Duplicate', testId('duplicate'),
|
menuItem(actions.onDuplicate, 'Duplicate Page', testId('duplicate'),
|
||||||
dom.cls('disabled', actions.isReadonly)),
|
dom.cls('disabled', actions.isReadonly)),
|
||||||
dom.maybe(actions.isReadonly, () => menuText('You do not have edit access to this document')),
|
dom.maybe(actions.isReadonly, () => menuText('You do not have edit access to this document')),
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user