[Kimchi-devel] [PATCH] Issue #563: Delete network button works even disabled

gouzongmei at ourfuture.cn gouzongmei at ourfuture.cn
Thu Jan 15 03:59:04 UTC 2015


From: Zongmei Gou <gouzongmei at ourfuture.cn>

---
 ui/js/src/kimchi.network.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.network.js b/ui/js/src/kimchi.network.js
index 34448f8..bd91d29 100644
--- a/ui/js/src/kimchi.network.js
+++ b/ui/js/src/kimchi.network.js
@@ -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({
-- 
1.8.3.1




More information about the Kimchi-devel mailing list