Skip to content

Commit

Permalink
Correcting schema issue with CustomTab
Browse files Browse the repository at this point in the history
Per the manifest schema, Label has to come *after* Group in a CustomTab
element.
  • Loading branch information
jasonjoh committed Jan 22, 2016
1 parent 350ca7b commit e7933e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions generators/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,14 +768,16 @@ function buildControlContainer(type, config) {
case 'TabDefault': // Default tab (used by Outlook)
container.nodeName = 'OfficeTab';
container.node = {
'$': { id: type }
'$': { id: type },
Group: buildGroup(config)
};
break;
case 'TabCustom': // Custom tab
config.customContainerCount++;
container.nodeName = 'CustomTab';
container.node = {
'$': { id: type + config.customContainerCount },
Group: buildGroup(config),
Label: {
'$': {
resid: createShortStringResource('customTabLabel', config.customContainerCount,
Expand All @@ -786,8 +788,7 @@ function buildControlContainer(type, config) {

break;
}

container.node.Group = buildGroup(config);

return container;
}

Expand Down

0 comments on commit e7933e9

Please sign in to comment.