forked from RallyApps/app-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeamBoardColumn.js
81 lines (69 loc) · 2.4 KB
/
TeamBoardColumn.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
(function() {
var Ext = window.Ext4 || window.Ext;
Ext.define('Rally.apps.teamboard.TeamBoardColumn', {
extend: 'Rally.ui.cardboard.Column',
alias: 'widget.rallyteamcolumn',
requires: [
'Rally.apps.teamboard.TeamBoardDropController',
'Rally.apps.teamboard.plugin.TeamBoardUserIterationCapacity',
'Rally.apps.teamboard.plugin.TeamBoardWip',
'Rally.ui.cardboard.plugin.ColumnCardCounter',
'Rally.ui.combobox.IterationComboBox'
],
plugins: [
{ptype: 'rallycolumncardcounter'},
{ptype: 'rallyteamboardwip'},
{ptype: 'rallyteamboarduseriterationcapacity'}
],
config: {
dropControllerConfig: {
ptype: 'rallyteamboarddropcontroller'
}
},
initComponent: function() {
this.callParent(arguments);
this.addEvents('iterationcomboready');
this.on('storeload', this._addIterationCombo, this);
},
assign: function(record){
// Don't need to do anything to the User record
},
getStoreFilter: function(model) {
return {
property: this.attribute,
operator: 'contains',
value: this.getValue()
};
},
isMatchingRecord: function(record){
return true;
},
_addIterationCombo: function() {
this.getColumnHeader().add({
xtype: 'container',
cls: 'team-board-iteration-section',
items: [{
xtype: 'rallyiterationcombobox',
allowNoEntry: true,
listeners: {
ready: this._onIterationComboReady,
scope: this
},
storeConfig: {
context: {
project: this.getValue(),
projectScopeDown: false,
projectScopeUp: false
}
}
}]
});
},
_onIterationComboReady: function(combo) {
if (Rally.BrowserTest) {
Rally.BrowserTest.publishComponentReady(this);
}
this.fireEvent('iterationcomboready', this, combo);
}
});
})();