Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 301... Línea 301...
301
            {watch: `reactives[${this.id}].readOnly:updated`, handler: this._refreshReadOnly},
301
            {watch: `reactives[${this.id}].readOnly:updated`, handler: this._refreshReadOnly},
302
        ];
302
        ];
303
    }
303
    }
Línea 304... Línea 304...
304
 
304
 
305
    /**
305
    /**
306
     * Wtacher method to refresh the log panel.
306
     * Watcher method to refresh the log panel.
307
     *
307
     *
308
     * @param {object} args
308
     * @param {object} args
309
     * @param {HTMLElement} args.element
309
     * @param {HTMLElement} args.element
310
     */
310
     */
311
    _refreshLog({element}) {
311
    _refreshLog({element}) {
Línea 312... Línea -...
312
        const list = element?.lastChanges ?? [];
-
 
313
 
312
        const list = element?.lastChanges ?? [];
-
 
313
 
314
        const logContent = list.join("\n");
314
        // Append last log.
-
 
315
 
-
 
316
        const target = this.getElement(this.selectors.LOG);
-
 
317
        if (target.value !== '') {
-
 
318
            target.value += '\n\n';
-
 
319
        }
-
 
320
 
315
        // Append last log.
321
        const logContent = list.join("\n");
316
        const target = this.getElement(this.selectors.LOG);
322
 
317
        target.value += `\n\n= Transaction =\n ${logContent}`;
323
        target.value += `= Transaction =\n${logContent}`;
Línea 318... Línea 324...
318
        target.scrollTop = target.scrollHeight;
324
        target.scrollTop = target.scrollHeight;
319
    }
325
    }