Minor tweaks to settings
This commit is contained in:
parent
5934bace66
commit
6bfdf141c8
2 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,7 @@ import {call} from 'core/ajax';
|
|||
import notification from 'core/notification';
|
||||
|
||||
// Prepare default value.
|
||||
let settingcache = null;
|
||||
let settingcache = {};
|
||||
|
||||
/**
|
||||
* Retrieve settings.
|
||||
|
|
|
@ -189,6 +189,7 @@ class utilityservice extends \external_api {
|
|||
"enablebadges" => new \external_value(PARAM_BOOL, 'Badges are enabled in this instance'),
|
||||
"badges_allowcoursebadges" => new \external_value(PARAM_BOOL, 'Course badges are enabled in this instance'),
|
||||
"showprevnextarrows" => new \external_value(PARAM_BOOL, 'Show arrows next to the student selector'),
|
||||
"enableplansharing" => new \external_value(PARAM_BOOL, 'Show arrows next to the student selector'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -208,6 +209,7 @@ class utilityservice extends \external_api {
|
|||
"enablebadges" => !empty($CFG->enablebadges),
|
||||
"badges_allowcoursebadges" => !empty($CFG->badges_allowcoursebadges),
|
||||
"showprevnextarrows" => get_config("local_treestudyplan", "showprevnextarrows"),
|
||||
"enableplansharing" => get_config("local_treestudyplan", "enableplansharing"),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue