diff --git a/.gitignore b/.gitignore index 3d2c0d88b1..612df3afe1 100644 --- a/.gitignore +++ b/.gitignore @@ -36,9 +36,9 @@ dist rdmo/management/static -rdmo/core/static/core/js/base.js +rdmo/core/static/core/js/base*.js rdmo/core/static/core/fonts -rdmo/core/static/core/css/base.css +rdmo/core/static/core/css/base*.css rdmo/projects/static/projects/js/*.js rdmo/projects/static/projects/fonts diff --git a/rdmo/projects/assets/js/projects/components/helper/ProjectFilters.js b/rdmo/projects/assets/js/projects/components/helper/ProjectFilters.js index 0ce94c1a23..bbd730456e 100644 --- a/rdmo/projects/assets/js/projects/components/helper/ProjectFilters.js +++ b/rdmo/projects/assets/js/projects/components/helper/ProjectFilters.js @@ -35,8 +35,15 @@ const ProjectFilters = ({ catalogs, config, configActions, isManager, projectsAc projectsActions.fetchProjects() } - const catalogOptions = catalogs?.filter(catalog => catalog.available) - .map(catalog => ({ value: catalog.id.toString(), label: catalog.title })) + const catalogOptions = catalogs?.filter(catalog => isManager || catalog.available) + .map(catalog => ({ + value: catalog.id.toString(), + label: ( + + {catalog.title} + + ), + })) const selectedCatalog = get(config, 'params.catalog', '') const updateCatalogFilter = (value) => { value ? configActions.updateConfig('params.catalog', value) : configActions.deleteConfig('params.catalog') diff --git a/rdmo/projects/assets/scss/projects.scss b/rdmo/projects/assets/scss/projects.scss index dbe1811707..5134309d95 100644 --- a/rdmo/projects/assets/scss/projects.scss +++ b/rdmo/projects/assets/scss/projects.scss @@ -374,3 +374,8 @@ a.disabled { .dropzone.disabled { opacity: 0.6; } + +/* Selected style for muted select options */ +.react-select__menu .react-select__option--is-selected .text-muted { + color: white; /* White when selected */ +}