Commit 674fb570 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Additional vm name truncates

parent 614780a0
...@@ -300,7 +300,8 @@ ...@@ -300,7 +300,8 @@
}, },
update_vm_details: function() { update_vm_details: function() {
this.set_subtitle(this.vm.escape("name") + var name = _.escape(util.truncate(this.vm.get("name"), 70));
this.set_subtitle(name +
snf.ui.helpers.vm_icon_tag(this.vm, snf.ui.helpers.vm_icon_tag(this.vm,
"small")); "small"));
}, },
......
...@@ -324,7 +324,8 @@ ...@@ -324,7 +324,8 @@
_update_vm_details: function() { _update_vm_details: function() {
if (!this.vm) { console.error("invalid view state"); return } if (!this.vm) { console.error("invalid view state"); return }
this.set_subtitle(this.vm.escape("name") + snf.ui.helpers.vm_icon_tag(this.vm, "small")); var name = _.escape(util.truncate(this.vm.get("name"), 70));
this.set_subtitle(name + snf.ui.helpers.vm_icon_tag(this.vm, "small"));
this.update_vm_details() this.update_vm_details()
}, },
......
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