mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user