Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/dashboard/src/pages/ChainCode/ChainCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@
this.setState({ newFile: file });
};

handleSelectRows = rows => {
this.setState({
selectedRows: rows,
});
};

render() {
const {
selectedRows,
Expand Down Expand Up @@ -237,7 +243,7 @@
selectedRows: [],
initFlagChange: e => {
// this can be used to handle the initFlag change, currently only for demo
console.log('initFlag changed:', e.target.checked);

Check warning on line 246 in src/dashboard/src/pages/ChainCode/ChainCode.js

View workflow job for this annotation

GitHub Actions / check

Unexpected console statement
},
intl,
};
Expand Down
6 changes: 6 additions & 0 deletions src/dashboard/src/pages/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@ class Channel extends PureComponent {
});
};

handleSelectRows = rows => {
this.setState({
selectedRows: rows,
});
};

render() {
const { selectedRows, modalVisible, channelData, updateModalVisible, newFile } = this.state;
const {
Expand Down
6 changes: 6 additions & 0 deletions src/dashboard/src/pages/Network/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ class Network extends PureComponent {
}
};

handleSelectRows = rows => {
this.setState({
selectedRows: rows,
});
};

render() {
const { selectedRows } = this.state;
const {
Expand Down
Loading