Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
0f23c16c
Commit
0f23c16c
authored
Dec 02, 2013
by
Kostas Papadimitriou
Browse files
ui: Fix hotplug enabled/disabled checks
parent
91849ce4
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/models.js
View file @
0f23c16c
...
...
@@ -1123,7 +1123,7 @@
},
can_connect
:
function
()
{
if
(
synnefo
.
config
.
hotplug_enabled
&&
this
.
is_active
())
{
return
false
}
if
(
!
synnefo
.
config
.
hotplug_enabled
&&
this
.
is_active
())
{
return
false
}
return
_
.
contains
([
"
ACTIVE
"
,
"
STOPPED
"
],
this
.
get
(
"
status
"
))
&&
!
this
.
get
(
'
suspended
'
)
},
...
...
snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js
View file @
0f23c16c
...
...
@@ -373,7 +373,7 @@
return
false
}
var
vm_active
=
this
.
get
(
'
vm
'
)
&&
this
.
get
(
'
vm
'
).
is_active
();
if
(
synnefo
.
config
.
hotplug_enabled
&&
vm_active
)
{
if
(
!
synnefo
.
config
.
hotplug_enabled
&&
this
.
get
(
'
vm
'
)
&&
vm_active
)
{
return
false
;
}
var
status_ok
=
_
.
contains
([
'
DOWN
'
,
'
ACTIVE
'
,
'
CONNECTED
'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment