alfresco-ng2-components/docs/content-services/components/new-version-uploader.dialog.md
AleksanderSklorz 8ebb8d1b43
[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
2024-10-21 15:16:20 +02:00

1.8 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Version List component v4.1.1 Active 2024-10-21

New Version Uploader dialog

Displays list of versions history of a node in a dialog.

Version Manager

Basic Usage

this.dialog.open<NewVersionUploaderDialogComponent, NewVersionUploaderDialogData>(
    NewVersionUploaderDialogComponent,
    {
        data: {
            file,
            node,
            currentVersion: version,
            showComments: true,
            allowDownload: true,
            showVersionsOnly: true,
            allowViewVersions: true,
            allowVersionDelete: true,
            showActions: true
        },
        width: '630px'
    }
)

Class members

Events

Name Type Description
dialogAction EventEmitter<NewVersionUploaderData> Emitted when any action occurs.
uploadError EventEmitter<any> Emitted when upload error occurs.

Details

This component can be used by calling openUploadNewVersionDialog function of New Version Uploader service.

See also