const renderGroupDeployNodes = (groupDeploys: List<DeployRecord>, deployGroup: DeployGroupRecord) => { const shouldShowProjectNames = !groupDeploys.equals(currentDeploys); return h( 'li', { className: `deploy deploy--${deployGroup.status.split(' ').join('-').toLowerCase()}` }, [ h('h2', [ h('a', { href: createBuildLink(deployGroup.build) }, `${deployGroup.build}`) ]), // Only show project names if we have multiple deployed groups exp(shouldShowProjectNames) && ih('ul', {}, groupDeploys .sortBy(build => build.projectName) .map(deploy => { const previousBuild = previousDeploysMap.get(deploy); return h('li', [ h('a', { href: createRiffRaffDeployLink(deploy.uuid), title: previousBuild ? `Previous build: ${previousBuild.build}` : '' }, deploy.projectName) ]); }) .toList() ) ] ); };
set selectedNodes(value: any[]) { let list: List<any> = List(value); if (!this._selectedNodes.equals(list)) { this._selectedNodes = list; if (this._selectedNodesObserver) { this._selectedNodesObserver.next(value); } } }