[MNT-24660] version list action cannot be disabled using app conf (#10308)

* MNT-24660 Added possibility to hide and show viewing of versions when calling openUploadNewVersionDialog function

* MNT-24660 Unit tests

* MNT-24660 Allow to set allowVersionDelete and showActions by new version uploader service

* MNT-24660 Unit tests and documentation

* MNT-24660 Reformated documentation table

* MNT-24660 Fixed sonar issues

* MNT-24660 Fix sonar and additional fixes
This commit is contained in:
AleksanderSklorz
2024-10-21 15:16:20 +02:00
committed by GitHub
parent 1d739ed15a
commit 8ebb8d1b43
21 changed files with 579 additions and 218 deletions

View File

@@ -62,7 +62,17 @@ export class NewVersionUploaderService {
const dialogRef = this.dialog.open<NewVersionUploaderDialogComponent, NewVersionUploaderDialogData>(
NewVersionUploaderDialogComponent,
{
data: { file, node, currentVersion: versionPaging.list.entries[0].entry, showComments, allowDownload, showVersionsOnly },
data: {
file,
node,
currentVersion: versionPaging.list.entries[0].entry,
showComments,
allowDownload,
showVersionsOnly,
allowViewVersions: data.allowViewVersions ?? true,
allowVersionDelete: data.allowVersionDelete ?? true,
showActions: data.showActions ?? true
},
panelClass: this.composePanelClass(showVersionsOnly),
width: '630px',
...(config && Object.keys(config).length > 0 && config)