change publish options to use declarative table (#22398)

This commit is contained in:
Kim Santiago
2023-03-22 09:44:27 -07:00
committed by GitHub
parent d7bd87fac0
commit 3b68aaed72
2 changed files with 46 additions and 38 deletions

View File

@@ -39,10 +39,20 @@ export class DeployOptionsModel {
let data: any[][] = [];
Object.entries(this.deploymentOptions.booleanOptionsDictionary).forEach(option => {
// option[1] holds checkedbox value and displayName
data.push([option[1].value, option[1].displayName]);
data.push([
{
value: option[1].value,
style: cssStyles.optionsTableRowCheckbox,
ariaLabel: option[1].displayName
},
{
value: option[1].displayName,
style: cssStyles.optionsTableRowLabel,
}
]);
});
return data.sort((a, b) => a[1].localeCompare(b[1]));
return data.sort((a, b) => a[1].value.localeCompare(b[1].value));
}
/*