Skip to content

Commit 0eefb3c

Browse files
committed
* 'master' of https://github.com/monarc-project/ng-anr: Added a possibility to set default export with evaluations.
2 parents 1a654e4 + 921a225 commit 0eefb3c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/AnrLayoutCtrl.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,15 +2595,16 @@
25952595
var useFullScreen = ($mdMedia('sm') || $mdMedia('xs'));
25962596

25972597
$mdDialog.show({
2598-
controller: ['$scope', '$mdDialog', 'mode', ExportAnrDialog],
2598+
controller: ['$scope', '$mdDialog', 'mode', 'ConfigService', ExportAnrDialog],
25992599
templateUrl: 'views/anr/export.objlibs.html',
26002600
targetEvent: ev,
26012601
preserveScope: false,
26022602
scope: $scope.$dialogScope.$new(),
26032603
clickOutsideToClose: false,
26042604
fullscreen: useFullScreen,
26052605
locals: {
2606-
mode: 'anr'
2606+
mode: 'anr',
2607+
ConfigService: ConfigService,
26072608
}
26082609
})
26092610
.then(function(exports) {
@@ -3087,19 +3088,20 @@
30873088
};
30883089
}
30893090

3090-
function ExportAnrDialog($scope, $mdDialog, mode) {
3091+
function ExportAnrDialog($scope, $mdDialog, mode, ConfigService) {
30913092
$scope.mode = mode;
30923093
$scope.exportData = {
30933094
password: '',
30943095
simple_mode: true,
3095-
assessments: 0,
3096+
assessments: ConfigService.isExportDefaultWithEval() ? 1 : 0,
30963097
methodSteps: true,
30973098
interviews: true,
30983099
controls: true,
30993100
recommendations: true,
31003101
soas: true,
31013102
records: true,
3102-
knowledgeBase: false
3103+
assetsLibrary: true,
3104+
knowledgeBase: true,
31033105
};
31043106

31053107
$scope.cancel = function() {

0 commit comments

Comments
 (0)