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
3e642c11
Commit
3e642c11
authored
Nov 18, 2013
by
Kostas Papadimitriou
Browse files
ui: Improve floating IP status display
parent
b2c10385
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js
View file @
3e642c11
...
...
@@ -166,7 +166,6 @@
this
.
update_connecting_status
();
this
.
update_actions
();
},
this
);
this
.
ports
.
bind
(
"
remove
"
,
function
()
{
this
.
pending_disconnects
--
;
this
.
update_connecting_status
();
...
...
@@ -473,13 +472,6 @@
},
proxy_attrs
:
{
'
ext_status
'
:
[
[
'
status
'
],
function
()
{
if
(
_
.
contains
([
"
DISCONNECTING
"
],
this
.
get
(
"
ext_status
"
)))
{
return
this
.
get
(
"
ext_status
"
)
}
return
this
.
get
(
"
status
"
)
}],
'
ip
'
:
[
[
'
floating_ip_adress
'
],
function
()
{
return
this
.
get
(
'
floating_ip_address
'
);
...
...
@@ -494,15 +486,19 @@
'
status
'
:
[
[
'
port_id
'
,
'
port
'
],
function
()
{
var
val
=
this
.
get
(
'
port_id
'
);
if
(
!
val
)
{
return
'
DISCONNECTED
'
var
port_id
=
this
.
get
(
'
port_id
'
);
if
(
!
port_id
)
{
return
'
DISCONNECTED
'
}
else
{
if
(
this
.
get
(
'
port
'
))
{
var
port
=
this
.
get
(
'
port
'
);
if
(
port
)
{
var
port_status
=
port
.
get
(
'
status
'
);
if
(
port_status
==
"
DISCONNECTING
"
)
{
return
port_status
}
return
'
CONNECTED
'
}
else
{
return
'
CONNECTING
'
}
return
'
CONNECTED
'
}
}
]
...
...
snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_ips_view.js
View file @
3e642c11
...
...
@@ -116,7 +116,6 @@
},
disconnect_complete
:
function
()
{
this
.
model
.
set
({
status
:
'
DISCONNECTING
'
})
},
connect_vm
:
function
(
vms
)
{
...
...
snf-cyclades-app/synnefo/ui/templates/partials/ips.html
View file @
3e642c11
...
...
@@ -31,9 +31,9 @@
</div>
</div>
<div
class=
"entry-right"
>
<div
data-rv-class=
"model.
ext_
status|status_cls"
class=
"status"
>
<div
data-rv-class=
"model.status|status_cls"
class=
"status"
>
<div
class=
"status-title"
>
<span
data-rv-text=
"model.
ext_
status|status_display"
>
Active
</span>
<span
data-rv-text=
"model.status|status_display"
>
Active
</span>
<span
data-rv-show=
"model.in_progress"
>
...
</span>
</div>
<div
class=
"status-indicator clearfix"
>
...
...
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