Revision a6b9836b snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_main_view.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_main_view.js | ||
---|---|---|
84 | 84 |
|
85 | 85 |
}); |
86 | 86 |
|
87 |
views.SuspendedVMView = views.FeedbackView.extend({ |
|
88 |
view_id: "suspended_info_view", |
|
89 |
|
|
90 |
css_class: 'overlay-api-info overlay-error non-critical', |
|
91 |
overlay_id: "overlay-api-info", |
|
92 |
|
|
93 |
subtitle: "", |
|
94 |
title: "VM Suspended", |
|
95 |
|
|
96 |
beforeOpen: function() { |
|
97 |
views.SuspendedVMView.__super__.beforeOpen.apply(this); |
|
98 |
$(this.$(".description p")[0]).html($("#suspended-vm-overlay .description").html()) |
|
99 |
}, |
|
100 |
|
|
101 |
show: function(vm, data, collect_data, extra_data, cb) { |
|
102 |
this.vm = vm; |
|
103 |
data = "Suspended VM Details"; |
|
104 |
data += "\n===================="; |
|
105 |
data += "\nID: " + vm.id; |
|
106 |
data += "\nName: " + vm.get('name'); |
|
107 |
data += "\nPublic IP: " + vm.get_public_nic().get('ipv4'); |
|
108 |
data += "\n\n"; |
|
109 |
views.SuspendedVMView.__super__.show.call(this, data, collect_data, extra_data, cb); |
|
110 |
} |
|
111 |
|
|
112 |
}); |
|
113 |
|
|
87 | 114 |
views.ApiInfoView = views.Overlay.extend({ |
88 | 115 |
view_id: "api_info_view", |
89 | 116 |
|
... | ... | |
549 | 576 |
this.create_vm_view = new views.CreateVMView(); |
550 | 577 |
this.api_info_view = new views.ApiInfoView(); |
551 | 578 |
this.details_view = new views.DetailsView(); |
579 |
this.suspended_view = new views.SuspendedVMView(); |
|
552 | 580 |
//this.notice_view = new views.NoticeView(); |
553 | 581 |
}, |
554 | 582 |
|
Also available in: Unified diff