Commit c74ac94f authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Christos Stavrakakis
Browse files

ui: User proper snapshot param names in snapshot creation API call

parent bb6a67db
......@@ -65,7 +65,6 @@
models.GlanceImages = snf.models.Images.extend({
model: models.GlanceImage,
api_type: 'glance',
type_selections: {'personal':'My images',
'shared': 'Shared with me',
'public': 'Public'},
......
......@@ -123,7 +123,7 @@
var name = this.text.val();
var desc = this.description.val();
this.vm.create_snapshot({name:name, description:desc}, _.bind(function() {
this.vm.create_snapshot({display_name:name, display_description:desc}, _.bind(function() {
this.hide();
}, this));
},
......@@ -137,8 +137,9 @@
var date = '{0}-{1}-{2} {3}:{4}:{5}'.format(
d.getFullYear(), d.getMonth()+1, d.getDate(), d.getHours(),
d.getMinutes(), d.getSeconds());
var name = "Snapshot @ {0} of Volume {1} of Server {2} ({3})".format(date, index, vmid, vmname);
var description = "Volume id: {0}".format(this.volume);
var name = "\"{0}\" snapshot [{1}]".format(vmname, date);
if (this.volume) { name += "[volume:" + this.volume + "]" }
var description = "Volume id: {0}".format(this.volume || 'primary');
description += "\n" + "Server id: {0}".format(vmid);
description += "\n" + "Server name: {0}".format(vmname);
description += "\n" + "Timestamp: {0}".format(d.toJSON());
......
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