[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:
AleksanderSklorz
2024-10-21 23:27:48 +02:00
committed by GitHub
parent 0744dfcd55
commit dfa155df03
11 changed files with 303 additions and 21 deletions

View File

@@ -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.
*/