Skip to content

Commit 1100010

Browse files
committed
Revert "wip: Provide actions to quickly activate/deactive all filters of a layer (closes #517)"
This reverts commit fd524fc.
1 parent fd524fc commit 1100010

1 file changed

Lines changed: 9 additions & 30 deletions

File tree

config/default.js

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -244,36 +244,15 @@ const mapLayerActions = [{
244244
{
245245
id: 'filter-layer-data',
246246
label: 'mixins.activity.FILTER_DATA_LABEL',
247-
icon: 'las la-caret-left',
248-
visible: 'isLayerFilterable',
249-
component: 'menu/KSubMenu',
250-
content: [
251-
{
252-
id: 'edit-layer-filters',
253-
label: 'mixins.activity.EDIT_FILTERS_LABEL',
254-
icon: 'las la-filter',
255-
visible: 'isLayerFilterEditable',
256-
dialog: {
257-
component: 'KFeaturesFilterManager',
258-
layerId: ':_id',
259-
layerName: ':name',
260-
cancelAction: 'CANCEL',
261-
okAction: { id: 'apply-edit-filter', label: 'APPLY', handler: 'apply' }
262-
}
263-
},
264-
{
265-
id: 'activate-layer-filters',
266-
label: 'mixins.activity.TOGGLE_FILTERS_ON_LABEL',
267-
icon: 'las la-toggle-on',
268-
handler: { name: 'onToggleLayerFilters', params: [':0', true] }
269-
},
270-
{
271-
id: 'deactivate-layer-filters',
272-
label: 'mixins.activity.TOGGLE_FILTERS_OFF_LABEL',
273-
icon: 'las la-toggle-off',
274-
handler: { name: 'onToggleLayerFilters', params: [':0', false] }
275-
}
276-
]
247+
icon: 'las la-filter',
248+
visible: 'isLayerFilterEditable',
249+
dialog: {
250+
component: 'KFeaturesFilterManager',
251+
layerId: ':_id',
252+
layerName: ':name',
253+
cancelAction: 'CANCEL',
254+
okAction: { id: 'apply-edit-filter', label: 'APPLY', handler: 'apply' }
255+
}
277256
},
278257
{
279258
id: 'view-layer-data',

0 commit comments

Comments
 (0)