From c780cecd4edd5f45f457552161a1088da97cf7ca Mon Sep 17 00:00:00 2001 From: David Straub Date: Sun, 6 Dec 2020 14:10:06 +0100 Subject: [PATCH] Repository element --- src/components/GrampsjsRepository.js | 3 ++- src/strings.js | 2 ++ src/views/GrampsjsViewRepositories.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/GrampsjsRepository.js b/src/components/GrampsjsRepository.js index 404afc73..eee9e12d 100644 --- a/src/components/GrampsjsRepository.js +++ b/src/components/GrampsjsRepository.js @@ -14,7 +14,8 @@ export class GrampsjsRepository extends GrampsjsObject { renderProfile() { return html` -
${JSON.stringify(this.data, null, 2)}
+

${this.data.name}

+ ${this.data?.type ? html`

${this._("Type")}: ${this._(this.data.type)}

` : ''} `; } diff --git a/src/strings.js b/src/strings.js index 1f282ba2..6880e847 100644 --- a/src/strings.js +++ b/src/strings.js @@ -32,6 +32,7 @@ export const grampsStrings = [ "Citation", "Citations", "City", + "Collection", "Country", "County", "Custom", @@ -63,6 +64,7 @@ export const grampsStrings = [ "Home Page", "in", "LDS Note", + "Library", "Locality", "Map", "Marriage Date", diff --git a/src/views/GrampsjsViewRepositories.js b/src/views/GrampsjsViewRepositories.js index 79a9db1f..8d68d071 100644 --- a/src/views/GrampsjsViewRepositories.js +++ b/src/views/GrampsjsViewRepositories.js @@ -30,7 +30,7 @@ export class GrampsjsViewRepositories extends GrampsjsViewObjectsBase { const formattedRow = { grampsId: row.gramps_id, name: row.name, - type: row.type + type: this._(row.type) } return formattedRow }