diff --git a/app/client/components/duplicatePage.ts b/app/client/components/duplicatePage.ts index feffaaec..64db9561 100644 --- a/app/client/components/duplicatePage.ts +++ b/app/client/components/duplicatePage.ts @@ -22,13 +22,12 @@ export async function duplicatePage(gristDoc: GristDoc, pageId: number) { confirmModal('Duplicate page', 'Save', () => makeDuplicate(gristDoc, pageId, inputEl.value), ( dom('div', [ - "Enter name for the new page. ", - "Note that this does not copy data, ", - "but creates another view of the same data. ", cssField( cssLabel("Name"), inputEl = cssInput({value: pageName + ' (copy)'}), - ) + ), + "Note that this does not copy data, ", + "but creates another view of the same data.", ]) )); } diff --git a/app/client/ui2018/pages.ts b/app/client/ui2018/pages.ts index d43e7766..27f59b05 100644 --- a/app/client/ui2018/pages.ts +++ b/app/client/ui2018/pages.ts @@ -30,7 +30,7 @@ export function buildPageDom(name: Observable, actions: PageActions, ... dom.cls('disabled', actions.isReadonly)), menuItem(actions.onRemove, 'Remove', testId('remove'), 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.maybe(actions.isReadonly, () => menuText('You do not have edit access to this document')), ];