fixed tabbing for jobs history page (#1353)

This commit is contained in:
Aditya Bist
2018-05-05 11:10:44 -07:00
committed by GitHub
parent 0d76e845d5
commit a5c5fcbde1
3 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
<!-- Overview -->
<div class="overview-container">
<div class="overview-tab" (click)='toggleCollapse()'>
<div class="overview-tab" (click)='toggleCollapse()' tabindex="0">
<input id="accordion" type="checkbox">
<label for="accordion">
<div class="resultsViewCollapsible collapsed" (click)='toggleCollapse()'></div>

View File

@@ -148,6 +148,8 @@ export class JobHistoryComponent extends Disposable implements OnInit {
if (this._jobCacheObject.prevJobID === this._agentViewComponent.jobId || jobHistories[0].jobId === this._agentViewComponent.jobId) {
this._showPreviousRuns = true;
this.buildHistoryTree(self, jobHistories);
$('jobhistory-component .history-details .prev-run-list .monaco-tree').attr('tabIndex', '-1');
$('jobhistory-component .history-details .prev-run-list .monaco-tree-row').attr('tabIndex', '0');
this._cd.detectChanges();
}
} else if (jobHistories && jobHistories.length === 0 ){

View File

@@ -60,11 +60,13 @@ export class JobStepsViewComponent extends Disposable implements OnInit, AfterCo
dataSource: this._treeDataSource,
filter: this._treeFilter,
renderer: this._treeRenderer
}, {verticalScrollMode: ScrollbarVisibility.Visible});
}, { verticalScrollMode: ScrollbarVisibility.Visible });
this._register(attachListStyler(this._tree, this.bootstrapService.themeService));
}
this._tree.layout(JobStepsViewComponent._pageSize);
this._tree.setInput(new JobStepsViewModel());
$('jobstepsview-component .steps-tree .monaco-tree').attr('tabIndex', '-1');
$('jobstepsview-component .steps-tree .monaco-tree-row').attr('tabIndex', '0');
}
}