Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove file upload restraint from contents modal if modules are allowed #854

Merged
merged 4 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@
- ...
-->

## Versione X.X.X (dd/mm/yyyy)

### Migliorie

- ...

### Novità

- ...

### Fix

- E' possibile caricare moduli in maniera massiva nei documenti all'interno delle aree corrette dentro Documenti e Dati > Modulistica

## Versione 11.26.1 (27/12/2024)

### Fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,12 @@ class ContentsUploadModal extends Component {
// as per agid guidelines, files cannot be uploaded in modulistica folder inside ct servizio
// show restraint and hide upload button when page is called modulistica and when there's a restraint
// this is enough to identify this only case bc even if another page is called 'modulistica', it will have 'File'
// as addable type
// and "Modulo" as addable type
const showFileRestraint =
this.props.pathname.includes('modulistica') &&
!this.props.types.some((type) => type.id === 'File');
getBaseUrl(this.props.pathname).match(/\/servizi\/.*\/modulistica\/?$/) &&
!this.props.types.some(
(type) => type.id === 'File' || type.id === 'Modulo',
);

return (
this.props.open && (
Expand Down
Loading