]> git.proxmox.com Git - pmg-gui.git/blame - js/QueueAdministration.js
attachment grid: show all parts: fix title-casing in label
[pmg-gui.git] / js / QueueAdministration.js
CommitLineData
a1da2b36
DM
1Ext.define('PMG.QueueAdministration', {
2 extend: 'Ext.tab.Panel',
3 alias: 'widget.pmgQueueAdministration',
4
5 title: gettext('Queue Administration'),
6
7 border: false,
8 defaults: { border: false },
9
70b0bec4
DM
10 controller: {
11
12 xclass: 'Ext.app.ViewController',
13
14 onSelect: function(grid, rec) {
15 var view = this.getView();
16
17 var domain = rec.data.domain;
18
19 var mailq = this.lookupReference('mailq');
20
21 if (domain === "TOTAL") {
22 mailq.setFilter('');
23 } else {
24 mailq.setFilter('@' + rec.data.domain);
25 }
26
27 view.setActiveTab(mailq);
28 },
29
30 control: {
31 pmgPostfixQShape: {
c87d46fb
TL
32 itemdblclick: 'onSelect',
33 },
34 },
70b0bec4
DM
35 },
36
a1da2b36
DM
37 items: [
38 {
153408d5 39 title: gettext('Summary'),
f24df9c1 40 nodename: Proxmox.NodeName,
61415efa 41 itemId: 'qshape',
c87d46fb 42 xtype: 'pmgPostfixQShape',
ccf06524
DM
43 },
44 {
cd3d4213 45 title: gettext('Deferred Mail'),
ccf06524 46 nodename: Proxmox.NodeName,
70b0bec4 47 reference: 'mailq',
61415efa 48 itemId: 'mailqueue',
c87d46fb
TL
49 xtype: 'pmgPostfixMailQueue',
50 },
51 ],
a1da2b36 52});