Skip to content

Commit

Permalink
Add missing translation, display message if no data found
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Jan 25, 2025
1 parent a414db6 commit 6caf968
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,7 @@
"End Position": "End Position",
"DNA Match": "DNA Match",
"DNA match with %s deleted.": "DNA match with %s deleted.",
"Paste text or drop a file here": "Paste text or drop a file here"
"Paste text or drop a file here": "Paste text or drop a file here",
"No DNA matches found.": "No DNA matches found.",
"No DNA matches detected in the data provided.": "No DNA matches detected in the data provided."
}
7 changes: 7 additions & 0 deletions src/views/GrampsjsViewDnaMatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,19 @@ export class GrampsjsViewDnaMatches extends GrampsjsView {
render() {
return html`
${this._renderTabs()} ${this._renderSelect()}
${!this._selectDataLoading && !this._data.length
? this._renderNoData()
: ''}
${this.matches ? this._renderMatches() : ''}
${this.chromosome ? this._renderChromosome() : ''}
${this.canEdit ? this.renderFab() : ''} ${this.dialogContent}
`
}

_renderNoData() {
return html`<div>${this._('No DNA matches found.')}</div>`
}

_renderTabs() {
return html`
<md-tabs>
Expand Down

0 comments on commit 6caf968

Please sign in to comment.