Línea 85... |
Línea 85... |
85 |
|
85 |
|
86 |
/**
|
86 |
/**
|
87 |
* Array of form fields for LTI tool configuration.
|
87 |
* Array of form fields for LTI tool configuration.
|
88 |
*/
|
88 |
*/
|
89 |
var ltiFormFields = [
|
- |
|
90 |
new FormField('selectcontentstatus', FormField.TYPES.TEXT, true, ''),
|
89 |
var ltiFormFields = [
|
91 |
new FormField('name', FormField.TYPES.TEXT, false, ''),
|
90 |
new FormField('name', FormField.TYPES.TEXT, false, ''),
|
92 |
new FormField('introeditor', FormField.TYPES.EDITOR, false, ''),
|
91 |
new FormField('introeditor', FormField.TYPES.EDITOR, false, ''),
|
93 |
new FormField('toolurl', FormField.TYPES.TEXT, true, ''),
|
92 |
new FormField('toolurl', FormField.TYPES.TEXT, true, ''),
|
94 |
new FormField('securetoolurl', FormField.TYPES.TEXT, true, ''),
|
93 |
new FormField('securetoolurl', FormField.TYPES.TEXT, true, ''),
|
Línea 160... |
Línea 159... |
160 |
*/
|
159 |
*/
|
161 |
var configToVariant = (config) => {
|
160 |
var configToVariant = (config) => {
|
162 |
const variant = {};
|
161 |
const variant = {};
|
163 |
['name', 'toolurl', 'securetoolurl', 'instructorcustomparameters', 'icon', 'secureicon',
|
162 |
['name', 'toolurl', 'securetoolurl', 'instructorcustomparameters', 'icon', 'secureicon',
|
164 |
'launchcontainer', 'lineitemresourceid', 'lineitemtag', 'lineitemsubreviewurl',
|
163 |
'launchcontainer', 'lineitemresourceid', 'lineitemtag', 'lineitemsubreviewurl',
|
165 |
'lineitemsubreviewparams', 'selectcontentstatus'].forEach(
|
164 |
'lineitemsubreviewparams'].forEach(
|
166 |
function(name) {
|
165 |
function(name) {
|
167 |
variant[name] = config[name] || '';
|
166 |
variant[name] = config[name] || '';
|
168 |
}
|
167 |
}
|
169 |
);
|
168 |
);
|
170 |
variant['introeditor[text]'] = config.introeditor ? config.introeditor.text : '';
|
169 |
variant['introeditor[text]'] = config.introeditor ? config.introeditor.text : '';
|