Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Next Button is inactive state while updating Orderer Organization #526

Merged
merged 3 commits into from
Sep 12, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@ import Form from '../../../Form/Form';
import SidePanelWarning from '../../../SidePanelWarning/SidePanelWarning';

const SCOPE = 'channelModal';

let hasAdmin = false;
// This is step "channel_orderer_organizations"
//
// this panel allows selecting the orderer orgs in the config-block and which one's get the admin role
// (only used for osn admin nodes)
export class OrdererOrganizations extends Component {
componentDidMount() {
this.props.updateState(SCOPE, {
noAdminError: 'no_admin_error',
noOrderersError: false
});
if (!hasAdmin)
{
this.props.updateState(SCOPE, {
noAdminError: 'no_admin_error',
noOrderersError: false
});
}

}

// user added a new msp/org
Expand Down Expand Up @@ -99,7 +103,7 @@ export class OrdererOrganizations extends Component {
};

checkAdminCount(selected_ordering_orgs) {
let hasAdmin = false;
hasAdmin = false;
if (selected_ordering_orgs) {
selected_ordering_orgs.forEach(org => {
if (org.msp_id !== '' && org.roles.includes('admin')) {
Expand Down
Loading