Commit 108cc93d authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos Committed by Christos Stavrakakis
Browse files

ui: Fixes for volumes and snapshots

parent 40048b3f
......@@ -876,7 +876,7 @@ div.image-container {
}
.icon .machine-info {
padding: 20px 0;
padding: 28px 0;
}
.icon .machine-details .name {
......@@ -913,7 +913,7 @@ div.image-container {
.icon .vm-actions, .network .vm-actions {
width: 180px;
height: 96px;
height: 111px;
float: left;
}
......
......@@ -1524,10 +1524,11 @@
}, snapshot_params);
snf.api.sync('create', undefined, {
url: synnefo.config.api_urls.volume,
data: params,
url: synnefo.config.api_urls.volume + '/snapshots/',
data: JSON.stringify({snapshot:params}),
success: callback,
skip_api_error: false
skip_api_error: false,
contentType: 'application/json'
});
},
......
......@@ -123,7 +123,7 @@
var name = this.text.val();
var desc = this.description.val();
this.vm.create_snapshot(name, desc, _.bind(function() {
this.vm.create_snapshot({name:name, description:desc}, _.bind(function() {
this.hide();
}, this));
},
......
......@@ -195,7 +195,7 @@ def home(request):
'request': request,
'current_lang': get_language() or 'en',
'compute_api_url': json.dumps(uisettings.COMPUTE_URL),
'volumes_api_url': json.dumps(uisettings.VOLUME_URL),
'volume_api_url': json.dumps(uisettings.VOLUME_URL),
'network_api_url': json.dumps(uisettings.NETWORK_URL),
'user_catalog_url': json.dumps(uisettings.USER_CATALOG_URL),
'feedback_post_url': json.dumps(uisettings.FEEDBACK_URL),
......
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