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:
@@ -133,6 +133,27 @@ export class AppSettingsService {
|
||||
return this.appConfig.get<boolean>('adf-version-manager.allowDownload', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow to view versions if true, disallow otherwise.
|
||||
*/
|
||||
get versionManagerAllowViewVersions(): boolean {
|
||||
return this.appConfig.get<boolean>('adf-version-manager.allowViewVersions', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow to delete versions if true, disallow otherwise.
|
||||
*/
|
||||
get versionManagerAllowVersionDelete(): boolean {
|
||||
return this.appConfig.get<boolean>('adf-version-manager.allowVersionDelete', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow to open actions menu when true, otherwise hides it.
|
||||
*/
|
||||
get versionManagerShowActions(): boolean {
|
||||
return this.appConfig.get<boolean>('adf-version-manager.showActions', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the enablement of the file auto tryDownload feature from the app settings.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user