Skip to content

Commit 0631c8e

Browse files
committed
Add current filename to Dashboard view #336
Signed-off-by: Steven Esser <[email protected]>
1 parent 45f3cc9 commit 0631c8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

assets/app/js/renderer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ $(document).ready(() => {
265265
.then(() => {
266266
const currFile = workbenchDB.sequelize.options.storage;
267267
document.title = 'ScanCode Workbench - ' + path.basename(currFile);
268+
$('#dashboard-title-text').text('Dashboard - ' + path.basename(currFile));
269+
268270
scanDataTable.clearColumnFilters();
269271

270272
// update all views with the new database.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h4>Additional Help and Documentation:</h4>
156156
<div class="tab-pane container" id="tab-dashboard">
157157
<div id="dashboard-container">
158158
<div id="dashboard-title">
159-
<h2>Dashboard</h2>
159+
<h2 id="dashboard-title-text">Dashboard</h2>
160160
</div>
161161
<div id="dashboard-view">
162162
<div class="row">

0 commit comments

Comments
 (0)