Skip to content

Commit

Permalink
Merge pull request #2316 from laws-africa/provision-eid-in-title
Browse files Browse the repository at this point in the history
minor: add provision eid to title for navigation history
  • Loading branch information
goose-life authored Jan 6, 2025
2 parents dd93ccf + 3123bd8 commit aac2c66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion indigo_app/static/javascript/indigo/views/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
},

getTitle: function() {
return this.model.get('title') + ' @ ' + this.model.get('expression_date');
let title = this.model.get('title') + ' @ ' + this.model.get('expression_date');
if (Indigo.Preloads.provisionEid) {
title = title + ` – ${Indigo.Preloads.provisionEid}`;
}
return title;
},

render: function() {
Expand Down

0 comments on commit aac2c66

Please sign in to comment.