Skip to content

Commit

Permalink
conflict resolved-1
Browse files Browse the repository at this point in the history
  • Loading branch information
staware30 committed Dec 5, 2024
1 parent ee8365b commit 9154d90
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion blocks/gmo-program-details/gmo-program-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export default async function decorate(block) {

// deliverables tab
const expandCollapseTooltip = 'Expand/Collapse All Deliverable Tasks';
const expandCollapseTooltip = 'Expand/Collapse All Deliverable Tasks';
const deliverablesTab = div(
{ id: 'tab2', class: 'deliverables tab inactive'},
div(
Expand Down Expand Up @@ -498,6 +497,22 @@ async function addProgramStats(block) {
hideLoadingOverlay(bodyWrapper);
}

function toggleGroup(group, expand) {
if (expand) {
group.querySelector('.icon-next').classList.add('inactive');
group.querySelector('.icon-collapse').classList.remove('inactive');
} else {
group.querySelector('.icon-next').classList.remove('inactive');
group.querySelector('.icon-collapse').classList.add('inactive');
}
Array.from(group.children).forEach((child) => {
if (child.classList.contains('row')) {
child.classList.toggle('inactive', !expand);
}
});
};
}

function toggleGroup(group, expand) {
if (expand) {
group.querySelector('.icon-next').classList.add('inactive');
Expand Down Expand Up @@ -751,6 +766,7 @@ async function buildFieldScopes(scopeTypeId, scopes, block, associationMap) {
});
});
}
}

function buildKPIList(program) {
let kpiList = document.createElement('ul');
Expand Down

0 comments on commit 9154d90

Please sign in to comment.