-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSspEntitySchemaAccessListLookupSection.SSP.js
66 lines (62 loc) · 1.6 KB
/
SspEntitySchemaAccessListLookupSection.SSP.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
define("SspEntitySchemaAccessListLookupSection", ["ConfigurationGridUtilities"],
function() {
return {
entitySchemaName: "VwSysSSPEntitySchemaAccessList",
mixins: {
ConfigurationGridUtilites: "Terrasoft.ConfigurationGridUtilities"
},
attributes: {
"IsAddMode": {
"dataValueType": Terrasoft.DataValueType.BOOLEAN,
"value": false
}
},
methods: {
/**
* @inheritdoc Terrasoft.ConfigurationGridUtilites#getCellControlsConfig
* @overridden
*/
getCellControlsConfig: function() {
let controlsConfig =
this.mixins.ConfigurationGridUtilities.getCellControlsConfig.apply(this, arguments);
if (!this.get("IsAddMode")) {
this.Ext.apply(controlsConfig, {
enabled: false
});
}
return controlsConfig;
},
/**
* @inheritdoc Terrasoft.ConfigurationGridUtilities#createNewRow
* @overridden
*/
createNewRow: function() {
this.set("IsAddMode", true);
this.mixins.ConfigurationGridUtilities.createNewRow.apply(this, arguments);
this.set("IsAddMode", false);
},
/**
* @inheritDoc Terrasoft.BaseSection#isSeparateModeActionsButtonVisible
* @overridden
*/
isSeparateModeActionsButtonVisible: function () {
return false;
},
/**
* @inheritDoc BaseDataView#loadFiltersModule
* @overridden
*/
loadFiltersModule: this.Terrasoft.emptyFn
},
diff: /**SCHEMA_DIFF*/[
{
"operation": "remove",
"name": "activeRowActionCopy"
},
{
"operation": "remove",
"name": "activeRowActionCard"
}
]/**SCHEMA_DIFF*/
};
});