1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { Grid } from '@material-ui/core';
7 import { ProcessInformationCard } from '~/views-components/process-information-card/process-information-card';
8 import { SubprocessesCard } from '~/views/process-panel/subprocesses-card';
9 import { SubprocessFilterDataProps } from '~/components/subprocess-filter/subprocess-filter';
11 export class ProcessPanel extends React.Component {
40 onToggle = (filter: SubprocessFilterDataProps) => {
41 this.setState((prev: { filters: any[] }) => {
43 filters: prev.filters.map((f: SubprocessFilterDataProps) => {
44 if(f.key === filter.key) {
47 checked: !filter.checked
57 return <Grid container spacing={16}>
59 <ProcessInformationCard />
64 filters={this.state.filters}
65 onToggle={this.onToggle}