Skip to content

Commit f40cb4e

Browse files
committed
Displaying build log messages when clicking on the parse status label.
1 parent be58a0a commit f40cb4e

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

  • webgui/scripts/codecompass/view/component

webgui/scripts/codecompass/view/component/Text.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function (declare, domClass, dom, style, query, topic, ContentPane, Dialog,
2222
postCreate : function () {
2323
this.inherited(arguments);
2424

25+
this.set('title', 'Build logs');
2526
this._table = dom.create('table', { class : 'buildlogtable' });
2627

2728
this._addHeader();
@@ -228,7 +229,26 @@ function (declare, domClass, dom, style, query, topic, ContentPane, Dialog,
228229

229230
this._header = {
230231
header : dom.create('div', { class : 'header' }),
231-
parsestatus : dom.create('span', { class : 'parsestatus' }),
232+
parsestatus : dom.create('span', {
233+
class : 'parsestatus',
234+
onclick : function () {
235+
var dialog = new BuildDialog();
236+
var file = urlHandler.getFileInfo();
237+
var buildLogs = model.project.getBuildLog(file.id);
238+
239+
if (buildLogs.length === 0)
240+
{
241+
new Dialog({
242+
title : 'Build logs',
243+
content : '<b>No build logs for this file.</b>'
244+
}).show();
245+
return;
246+
}
247+
248+
dialog.addBuildLogs(buildLogs);
249+
dialog.show();
250+
}
251+
}),
232252
filename : dom.create('span', { class : 'filename' }),
233253
path : dom.create('span', { class : 'path' }),
234254
colons : dom.toDom('<span class="colons">::</span>')

0 commit comments

Comments
 (0)