fix: moved menu name and hotkey for site rendering
This commit is contained in:
@@ -120,7 +120,7 @@ export const APP_MENU_GROUPS: AppMenuGroupDefinition[] = [
|
|||||||
{ label: 'Reindex Search Text', action: 'reindexText' },
|
{ label: 'Reindex Search Text', action: 'reindexText' },
|
||||||
{ label: '', action: 'blog-separator-3', separator: true },
|
{ label: '', action: 'blog-separator-3', separator: true },
|
||||||
{ label: 'Metadata Diff Tool', action: 'metadataDiff' },
|
{ label: 'Metadata Diff Tool', action: 'metadataDiff' },
|
||||||
{ label: 'Generate Sitemap', action: 'generateSitemap' },
|
{ label: 'Render Site', action: 'generateSitemap', accelerator: 'CmdOrCtrl+R' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,4 +39,13 @@ describe('Help menu documentation entry', () => {
|
|||||||
expect(viewGroup?.items.some((item) => item.action === 'zoomOut')).toBe(true);
|
expect(viewGroup?.items.some((item) => item.action === 'zoomOut')).toBe(true);
|
||||||
expect(viewGroup?.items.some((item) => item.action === 'toggleFullScreen')).toBe(true);
|
expect(viewGroup?.items.some((item) => item.action === 'toggleFullScreen')).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('renames generateSitemap menu item to Render Site and assigns Command/Ctrl+R', () => {
|
||||||
|
const blogGroup = APP_MENU_GROUPS.find((group) => group.label === 'Blog');
|
||||||
|
const generateSiteItem = blogGroup?.items.find((item) => item.action === 'generateSitemap');
|
||||||
|
|
||||||
|
expect(generateSiteItem).toBeDefined();
|
||||||
|
expect(generateSiteItem?.label).toBe('Render Site');
|
||||||
|
expect(generateSiteItem?.accelerator).toBe('CmdOrCtrl+R');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user