Summary
The configurable actions component is meant to be a general purpose component
which can be reused in multiple places.
The appConfig includes multiple switches datasetActionsEnabled, datafilesActionsEnabled, datasetDetailsActionsEnabled and datasetSelectionActionsEnabled.
While currently only datasetActions and datafilesActions are implemented,
the isVisible function of the component depends only on datafilesActionsEnabled,
which means if only datasetActionsEnabled is true, the component is not rendered.
See line 19 in the code:
|
return this.appConfigService.getConfig().datafilesActionsEnabled; |
Steps to Reproduce
set datasetActionsEnabled: true and datafilesActionsEnabled: false in the frontend config
Current Behaviour
the datasetActions component(s) are not rendered
Expected Behaviour
the switch datasetActionsEnabled should enable the component even if datafilesActions are disabled.
Summary
The configurable actions component is meant to be a general purpose component
which can be reused in multiple places.
The appConfig includes multiple switches
datasetActionsEnabled,datafilesActionsEnabled,datasetDetailsActionsEnabledanddatasetSelectionActionsEnabled.While currently only
datasetActionsanddatafilesActionsare implemented,the
isVisiblefunction of the component depends only ondatafilesActionsEnabled,which means if only
datasetActionsEnabledis true, the component is not rendered.See line 19 in the code:
frontend/src/app/shared/modules/configurable-actions/configurable-actions.component.ts
Line 19 in ee7e108
Steps to Reproduce
set
datasetActionsEnabled: trueanddatafilesActionsEnabled: falsein the frontend configCurrent Behaviour
the datasetActions component(s) are not rendered
Expected Behaviour
the switch
datasetActionsEnabledshould enable the component even ifdatafilesActionsare disabled.