Fix Apply button progress state on interface management screen

Change-Id: Ibb3bca81562b12b05b7df664c3bf8c41cd843e6f
Closes-Bug: #1646177
This commit is contained in:
Vitaly Kramskikh 2016-12-23 19:05:44 +07:00
parent 90f92f0dd6
commit 6622cb41f7
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,7 @@ var EditNodeInterfacesScreen = React.createClass({
return interfaces.map((ifc) => picker(ifc.toJSON()));
},
hasChangesInRemainingNodes() {
var {nodes, interfaces} = this.props;
var {nodes, interfaces, bondAttributeNames} = this.props;
var {limitations} = this.state;
var firstNodeInterfacesData = this.interfacesToJSON(interfaces, true);
@ -235,6 +235,7 @@ var EditNodeInterfacesScreen = React.createClass({
case 'attributes': {
// omit restricted parameters from the comparison
return _.some(data, (section, sectionName) =>
!_.includes(bondAttributeNames, sectionName) &&
limitationsData[sectionName].equal &&
_.some(section, (setting, settingName) =>
!_.isEqual(