Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 53... Línea 53...
53
        // Indicates whether the file picker can be shown.
53
        // Indicates whether the file picker can be shown.
54
        this.canShowFilePicker = permissions.filepicker
54
        this.canShowFilePicker = permissions.filepicker
55
            && (typeof options !== 'undefined')
55
            && (typeof options !== 'undefined')
56
            && Object.keys(options.repositories).length > 0;
56
            && Object.keys(options.repositories).length > 0;
57
        // Indicates whether the drop zone area can be shown.
57
        // Indicates whether the drop zone area can be shown.
-
 
58
        this.canShowDropZone = (typeof options !== 'undefined') &&
58
        this.canShowDropZone = Object.values(options.repositories).some(repository => repository.type === 'upload');
59
            Object.values(options.repositories).some(repository => repository.type === 'upload');
Línea 59... Línea 60...
59
 
60
 
60
        this.editor = editor;
61
        this.editor = editor;
Línea 61... Línea 62...
61
    }
62
    }