Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 27... Línea 27...
27
 */
27
 */
Línea 28... Línea 28...
28
 
28
 
29
export const getSetup = async() => {
29
export const getSetup = async() => {
30
    const [
30
    const [
31
        buttonText,
-
 
32
        errorInvalidURL,
31
        buttonText,
33
        infoEmptySelection,
32
        infoEmptySelection,
34
        infoAddSuccess,
33
        infoAddSuccess,
35
        infoRemoveSuccess,
34
        infoRemoveSuccess,
36
        buttonImage,
35
        buttonImage,
37
    ] = await Promise.all([
36
    ] = await Promise.all([
38
        getString('buttontitle', component),
-
 
39
        getString('errorinvalidurl', component),
37
        getString('buttontitle', component),
40
        getString('infoemptyselection', component),
38
        getString('infoemptyselection', component),
41
        getString('infoaddsuccess', component),
39
        getString('infoaddsuccess', component),
42
        getString('inforemovesuccess', component),
40
        getString('inforemovesuccess', component),
43
        getButtonImage('icon', component),
41
        getButtonImage('icon', component),
Línea 44... Línea 42...
44
    ]);
42
    ]);
Línea 45... Línea 43...
45
 
43
 
46
    return (editor) => {
-
 
47
 
44
    return (editor) => {
48
        const messages = {
45
 
49
            errorInvalidURL: errorInvalidURL,
46
        const messages = {
50
            infoEmptySelection: infoEmptySelection,
47
            infoEmptySelection: infoEmptySelection,