]>
Commit | Line | Data |
---|---|---|
9940ea01 | 1 | Ext.define('PVE.QemuSummary', { |
bd597eba | 2 | extend: 'PVE.VMSummaryBase', |
9940ea01 DM |
3 | alias: 'widget.pveQemuSummary', |
4 | ||
5 | statics: { | |
6 | pathMatch: function(loc) { | |
f3b18589 TL |
7 | return loc.match(/^nodes\/([^\s/]+)\/qemu\/(\d+)$/); |
8 | }, | |
9940ea01 DM |
9 | }, |
10 | ||
bd597eba | 11 | vmtype: 'qemu', |
9940ea01 | 12 | |
bd597eba TL |
13 | config_keys: [ |
14 | 'name', 'memory', 'sockets', 'cores', 'ostype', 'bootdisk', /^net\d+/, | |
f3b18589 | 15 | /^ide\d+/, /^virtio\d+/, /^sata\d+/, /^scsi\d+/, /^unused\d+/, |
bd597eba | 16 | ], |
9940ea01 DM |
17 | |
18 | initialize: function() { | |
19 | var me = this; | |
20 | ||
21 | var match = me.self.pathMatch(me.getAppUrl()); | |
22 | if (!match) { | |
23 | throw "pathMatch failed"; | |
24 | } | |
25 | ||
26 | me.nodename = match[1]; | |
27 | me.vmid = match[2]; | |
28 | ||
29 | me.down('titlebar').setTitle('VM: ' + me.vmid); | |
30 | ||
9940ea01 | 31 | this.callParent(); |
f3b18589 | 32 | }, |
9940ea01 | 33 | }); |