1f0f615fc4
WIP #162. Hid 'success' and 'debug' attrs WIP #162 Added stdout logs to jobs WIP #162 Added 'Enter' button on jobs WIP #162 Added readonly, no syntax highlighting to LogViewer WIP #162 Added theme WIP #162. Removed extra new lines WIP #162. redirected stderr to stdout WIP #162 Updated seeds WIP #162 Removed unnecessary comment
30 linhas
686 B
JavaScript
30 linhas
686 B
JavaScript
/*globals define, _*/
|
|
/*jshint browser: true*/
|
|
|
|
// This is a read-only view of the 'stdout' attribute for a Job node
|
|
define([
|
|
'panels/TextEditor/TextEditorControl'
|
|
], function (
|
|
TextEditorControl
|
|
) {
|
|
|
|
'use strict';
|
|
|
|
var LogViewerControl;
|
|
|
|
LogViewerControl = function (options) {
|
|
options.attributeName = 'stdout';
|
|
TextEditorControl.call(this, options);
|
|
};
|
|
|
|
_.extend(LogViewerControl.prototype, TextEditorControl.prototype);
|
|
|
|
LogViewerControl.prototype._onUpdate = function (id) {
|
|
if (id === this._currentNodeId) {
|
|
TextEditorControl.prototype._onUpdate.call(this, id);
|
|
}
|
|
};
|
|
|
|
return LogViewerControl;
|
|
});
|