mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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
This commit is contained in:
@@ -21,3 +21,6 @@ For more information, please check also the [Content Metadata Component](https:/
|
||||
## Comments tab
|
||||
|
||||
The Comments tab displays all comments made on the selected node in the respoistory by using the [Comments Component](https://www.alfresco.com/abn/adf/core/comments.component/). Users can post new comments that will be displayed immediately.
|
||||
|
||||
## Versions tab
|
||||
Versions tab displays all versions of the selected node.
|
||||
|
@@ -8,12 +8,12 @@ The versions of a file can be viewed and managed by using the [Version Manager C
|
||||
|
||||
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](/features/document-list-layout#actions-and-the-actions-toolbar)):
|
||||
1) From the 'Manage Versions' option of the 'More actions' menu (check [Actions and the Actions Toolbar](../features/document-list-layout#actions-and-the-actions-toolbar)):
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
2) From the [Info Drawer](/features/info-drawer) (the Details right panel):
|
||||
2) From the [Info Drawer](../features/info-drawer) (the Details right panel):
|
||||
|
||||

|
||||
|
||||
@@ -21,23 +21,35 @@ There are 2 ways users can access the Version Manager:
|
||||
|
||||
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](https://www.alfresco.com/abn/adf/content-services/upload-version-button.component/).
|
||||
Please also check the [UploadVersionButtonComponent](https://github.com/Alfresco/alfresco-ng2-components/blob/develop/docs/content-services/components/upload-version-button.component.md).
|
||||
|
||||
## Actions Menu
|
||||
|
||||
Each item in the version list has a couple of actions available: Restore, Download and Delete. These are displayed if user has permission to do that specific action. The 'Download' and 'Delete' can be also disabled from the app.config.
|
||||
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.
|
||||
|
||||
In the app.config.json file, these are the current settings for the ACA version manager:
|
||||
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:
|
||||
|
||||
```json
|
||||
{
|
||||
"adf-version-manager": {
|
||||
"allowComments": true,
|
||||
"allowDownload": true
|
||||
"allowDownload": true,
|
||||
"allowViewVersions": true,
|
||||
"allowVersionDelete": true,
|
||||
"showActions": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Set the allowComments to false if the version comments should not be displayed on the version list.
|
||||
|
||||
Clicking to delete a version of a file triggers a confirmation dialog. Please see the [Confirm Dialog Component](https://github.com/Alfresco/alfresco-ng2-components/blob/develop/lib/content-services/dialogs/confirm.dialog.ts) for more info.
|
||||
Clicking to delete a version of a file triggers a confirmation dialog. Please see the [Confirm Dialog Component](https://github.com/Alfresco/alfresco-ng2-components/blob/develop/docs/core/dialogs/confirm.dialog.md) for more info.
|
||||
|
Reference in New Issue
Block a user