Skip to content

Commit

Permalink
Issue kimchi-project#563: Delete network button works even disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzongmei authored and alinefm committed Jan 19, 2015
1 parent fcc38fd commit e494883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/js/src/kimchi.network.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ kimchi.addNetworkActions = function(network) {
network.state = "down";
}
} else if ($(evt.currentTarget).attr("nwAct") === "delete") {
if (network.state === "up") {
if (network.state === "up" || network.in_use) {
return false;
}
kimchi.confirm({
Expand Down

0 comments on commit e494883

Please sign in to comment.