Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 39... Línea 39...
39
            QUEUELIST: `[data-for="process-list"]`,
39
            QUEUELIST: `[data-for="process-list"]`,
40
            CLOSE: `[data-action="hide"]`,
40
            CLOSE: `[data-action="hide"]`,
41
        };
41
        };
42
        // Default classes to toggle on refresh.
42
        // Default classes to toggle on refresh.
43
        this.classes = {
43
        this.classes = {
44
            HIDE: `d-none`,
44
            SHOW: 'show',
45
        };
45
        };
46
    }
46
    }
Línea 47... Línea 47...
47
 
47
 
48
    /**
48
    /**
Línea 106... Línea 106...
106
     *
106
     *
107
     * @param {object} args the watcher arguments
107
     * @param {object} args the watcher arguments
108
     * @param {object} args.element the display state data
108
     * @param {object} args.element the display state data
109
     */
109
     */
110
    _updateMonitor({element}) {
110
    _updateMonitor({element}) {
111
        this.element.classList.toggle(this.classes.HIDE, element.show !== true);
111
        this.element.classList.toggle(this.classes.SHOW, element.show === true);
112
    }
112
    }
Línea 113... Línea 113...
113
 
113
 
114
    /**
114
    /**
115
     * Close the monitor.
115
     * Close the monitor.