alfresco-content-app/docs/features/version-manager.md
AleksanderSklorz dfa155df03
[MNT-24660] version list action cannot be disabled using app conf (#4182)
* MNT-24660 Fixed config settings for version manager

* MNT-24660 Unit tests

* MNT-24660 Added possibility to hide and show delete version option

* MNT-24660 Property to show or hide version actions

* MNT-24660 Added more tests, updated documentation

* MNT-24660 Additional documentation

* MNT-24660 Additional fixes

* MNT-24660 Reverted not wanted change

* MNT-24660 Reverted not wanted change
2024-10-21 23:27:48 +02:00

2.7 KiB

Title
Title
Version Manager

Version Manager

The versions of a file can be viewed and managed by using the Version Manager Component.

There are 2 ways users can access the Version Manager:

  1. From the 'Manage Versions' option of the 'More actions' menu (check Actions and the Actions Toolbar):

Version Manager Menu Version Manager Dialog

  1. From the Info Drawer (the Details right panel):

Version Manager Inline

Upload new version

A new version for the selected file can be added by using this button. Users can upload a new file version using a file that is does not have the same name, or mime type as the current version, whilst allowing the user to choose the type of version (minor or major) and inputting supporting comments.

Please also check the UploadVersionButtonComponent.

Actions Menu

Each item in the version list has a couple of actions available: View, Restore, Download and Delete. These are displayed if user has permission to do that specific action.

Some of these options can be also enabled/disabled in app.config.json file. All configurable options are listed below:

Option Default value Description
allowComments true Show version's comment in list of versions if true, hide otherwise.
allowDownload true Allow to download versions if true, disallow otherwise.
allowViewVersions true Allow to view versions if true, disallow otherwise.
allowVersionDelete true Allow to delete versions if true, disallow otherwise.
showActions true Allow to open actions menu when true, otherwise hides it.

Example of settings in the app.config.json file:

{
   "adf-version-manager": {
       "allowComments": true,
       "allowDownload": true,
       "allowViewVersions": true,
       "allowVersionDelete": true,
       "showActions": true
   }
}

Clicking to delete a version of a file triggers a confirmation dialog. Please see the Confirm Dialog Component for more info.