Skip to content

Commit eb57f69

Browse files
committed
jsdialog: add missing id to menu definitions
Signed-off-by: Szymon Kłos <[email protected]> Change-Id: I1b78a06bbeb004041389692a66823784cdb87814
1 parent 2cdb6fd commit eb57f69

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

browser/src/control/jsdialog/Definitions.Menu.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,14 +1473,15 @@ menuDefinitions.set('MenuPrintRanges', [
14731473
] as Array<MenuDefinition>);
14741474
menuDefinitions.set('MenuMargins', [
14751475
{
1476+
id: 'MarginMenu',
14761477
type: 'json',
14771478
content: {
14781479
id: 'Layout-MarginMenu',
14791480
type: 'pagemarginentry',
14801481
options: pageMarginOptions,
14811482
},
14821483
},
1483-
{ type: 'separator' },
1484+
{ id: 'MarginMenuSeparator', type: 'separator' },
14841485
] as Array<MenuDefinition>);
14851486

14861487
menuDefinitions.set('MenuOrientation', [
@@ -1545,6 +1546,7 @@ const pageSizes = [
15451546

15461547
menuDefinitions.set('MenuPageSizesCalc', [
15471548
{
1549+
id: 'PageSizeMenu',
15481550
type: 'json',
15491551
content: {
15501552
id: 'Layout-PageSizeMenu',
@@ -1556,7 +1558,7 @@ menuDefinitions.set('MenuPageSizesCalc', [
15561558
})),
15571559
},
15581560
},
1559-
{ type: 'separator' },
1561+
{ id: 'PageSizeMenuSeparator', type: 'separator' },
15601562
] as Array<MenuDefinition>);
15611563

15621564
menuDefinitions.set(
@@ -2264,6 +2266,7 @@ function generatePictureTransparencyMenu(
22642266

22652267
menuDefinitions.set('NewSlideLayoutMenu', [
22662268
{
2269+
id: 'NewSlideLayoutMenu',
22672270
type: 'json',
22682271
content: {
22692272
id: 'Layout-NewSlideLayoutMenu',
@@ -2273,15 +2276,16 @@ menuDefinitions.set('NewSlideLayoutMenu', [
22732276
gridContent: generateLayoutPopupGrid('InsertPage'),
22742277
},
22752278
},
2276-
{ type: 'separator' }, // required to show dropdown arrow
2279+
{ id: 'NewSlideLayoutMenuSeparator', type: 'separator' }, // required to show dropdown arrow
22772280
] as Array<MenuDefinition>);
22782281

22792282
menuDefinitions.set('ChangeSlideLayoutMenu', [
22802283
{
2284+
id: 'ChangeSlideLayoutMenu',
22812285
type: 'json',
22822286
content: generateLayoutPopupGrid('AssignLayout'),
22832287
},
2284-
{ type: 'separator' }, // required to show dropdown arrow
2288+
{ id: 'ChangeSlideLayoutMenuSeparator', type: 'separator' }, // required to show dropdown arrow
22852289
] as Array<MenuDefinition>);
22862290

22872291
menuDefinitions.set(

0 commit comments

Comments
 (0)