Commit 8221e8f2 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Snapshot action indicator icon

parent 7bcea020
......@@ -4155,6 +4155,9 @@ div.state .start, tbody.machines .start {
div.state .resize, tbody.machines .resize {
background-image: url("../images/icons/actions/medium/resize.png");
}
div.state .snapshot, tbody.machines .snapshot {
background-image: url("../images/icons/actions/medium/snapshot.png");
}
div.state .reboot, tbody.machines .reboot {
background-image: url("../images/icons/actions/medium/reboot.png");
}
......
......@@ -1612,7 +1612,8 @@
'reboot',
'console',
'destroy',
'resize'
'resize',
'snapshot'
]
models.VM.TASK_STATE_STATUS_MAP = {
......@@ -1630,8 +1631,8 @@
'UNKNWON' : ['destroy'],
'BUILD' : ['destroy'],
'REBOOT' : ['destroy'],
'STOPPED' : ['start', 'destroy', 'resize'],
'ACTIVE' : ['shutdown', 'destroy', 'reboot', 'console', 'resize'],
'STOPPED' : ['start', 'destroy', 'resize', 'snapshot'],
'ACTIVE' : ['shutdown', 'destroy', 'reboot', 'console', 'resize', 'snapshot'],
'ERROR' : ['destroy'],
'DELETED' : ['destroy'],
'DESTROY' : ['destroy'],
......
......@@ -695,6 +695,7 @@
'console': ['ACTIVE'],
'start': ['UNKOWN', 'STOPPED'],
'resize': ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT', 'ERROR', 'BUILD'],
'snapshot': ['ACTIVE', 'STOPPED'],
'destroy': ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT', 'ERROR', 'BUILD']
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment