Skip to content

Commit d14135f

Browse files
feat(cockpit): Make default value for cascade flag configurable (#4964)
Related to #2479
1 parent c829dd5 commit d14135f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

webapps/frontend/public/app/cockpit/scripts/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export default {
6060
// default: true,
6161
// hidden: false
6262
// },
63+
// cascade: {
64+
// default: false
65+
// },
6366
// 'batchOperation' : {
6467
// // select mode of query for process instances or decision instances
6568
// // possible values: filter, search

webapps/frontend/ui/cockpit/client/scripts/repository/deployments/plugins/actions/delete/modals/cam-cockpit-delete-deployment-modal-ctrl.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ module.exports = [
4444

4545
var SKIP_CUSTOM_LISTENERS = configuration.getSkipCustomListeners();
4646
var SKIP_IO_MAPPINGS = ($scope.SKIP_IO_MAPPINGS = configuration.getSkipIoMappings());
47+
var CASCADE = configuration.getCascade();
4748

4849
var options = ($scope.options = {
49-
cascade: false,
50+
cascade: CASCADE.default,
5051
skipCustomListeners: SKIP_CUSTOM_LISTENERS.default,
5152
skipIoMappings: SKIP_IO_MAPPINGS.default
5253
});

webapps/frontend/ui/common/scripts/services/cam-configuration.js

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ var defaultConfig = {
4040
default: true,
4141
hidden: false
4242
},
43+
cascade: {
44+
default: false
45+
},
4346
runtimeActivityInstanceMetrics: {
4447
display: true
4548
},
@@ -137,6 +140,10 @@ module.exports = function(config, app) {
137140
);
138141
};
139142

143+
this.getCascade = function() {
144+
return angular.extend({}, defaultConfig.cascade, config.cascade);
145+
};
146+
140147
this.getRuntimeActivityInstanceMetrics = function() {
141148
var param = 'runtimeActivityInstanceMetrics';
142149
return angular.extend({}, defaultConfig[param], config[param]).display;

0 commit comments

Comments
 (0)