Skip to content

Commit

Permalink
Update media/CfgEditor/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Seungho Henry Park <[email protected]>

ONE-vscode-DCO-1.0-Signed-off-by: Dayoung Lee <[email protected]>
  • Loading branch information
dayo09 committed Sep 26, 2023
1 parent 32a1fcf commit 5717a8b
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions media/CfgEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,28 +347,29 @@ function registerOptimizeOptions() {
});

for (const optName in oneOptimizationList) {
if (Object.prototype.hasOwnProperty.call(oneOptimizationList, optName)) {
let row = document.createElement("vscode-data-grid-row");

let cellSwitch = document.createElement("vscode-data-grid-cell");
let checkbox = document.createElement("vscode-checkbox");
checkbox.setAttribute("id", "checkboxOptimize" + optName);
cellSwitch.appendChild(checkbox);
cellSwitch.setAttribute("grid-column", "1");
row.appendChild(cellSwitch);

let cellName = document.createElement("vscode-data-grid-cell");
cellName.textContent = optName;
cellName.setAttribute("grid-column", "2");
row.appendChild(cellName);

let cellDescription = document.createElement("vscode-data-grid-cell");
cellDescription.textContent = oneOptimizationList[optName].description;
cellDescription.setAttribute("grid-column", "3");
row.appendChild(cellDescription);

basicOptimizeTable.appendChild(row);
if (!Object.prototype.hasOwnProperty.call(oneOptimizationList, optName)) {
continue;
}
let row = document.createElement("vscode-data-grid-row");

let cellSwitch = document.createElement("vscode-data-grid-cell");
let checkbox = document.createElement("vscode-checkbox");
checkbox.setAttribute("id", "checkboxOptimize" + optName);
cellSwitch.appendChild(checkbox);
cellSwitch.setAttribute("grid-column", "1");
row.appendChild(cellSwitch);

let cellName = document.createElement("vscode-data-grid-cell");
cellName.textContent = optName;
cellName.setAttribute("grid-column", "2");
row.appendChild(cellName);

let cellDescription = document.createElement("vscode-data-grid-cell");
cellDescription.textContent = oneOptimizationList[optName].description;
cellDescription.setAttribute("grid-column", "3");
row.appendChild(cellDescription);

basicOptimizeTable.appendChild(row);
}

for (const optName in oneOptimizationList) {
Expand Down

0 comments on commit 5717a8b

Please sign in to comment.