Skip to content

Commit

Permalink
Merge pull request #341 from nexB/336-add-filename-to-dashboard
Browse files Browse the repository at this point in the history
Add current filename to Dashboard view #336
  • Loading branch information
steven-esser authored Feb 5, 2019
2 parents 45f3cc9 + 0631c8e commit 5dacce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/app/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ $(document).ready(() => {
.then(() => {
const currFile = workbenchDB.sequelize.options.storage;
document.title = 'ScanCode Workbench - ' + path.basename(currFile);
$('#dashboard-title-text').text('Dashboard - ' + path.basename(currFile));

scanDataTable.clearColumnFilters();

// update all views with the new database.
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h4>Additional Help and Documentation:</h4>
<div class="tab-pane container" id="tab-dashboard">
<div id="dashboard-container">
<div id="dashboard-title">
<h2>Dashboard</h2>
<h2 id="dashboard-title-text">Dashboard</h2>
</div>
<div id="dashboard-view">
<div class="row">
Expand Down

0 comments on commit 5dacce7

Please sign in to comment.