From b7559f6c5b971a4784a682239d7d53617214715d Mon Sep 17 00:00:00 2001 From: David Straub Date: Sat, 6 Jul 2024 19:11:17 +0200 Subject: [PATCH] Fix editing source attributes (#465) --- src/components/GrampsjsAttributes.js | 18 +++++++++++++++++- src/components/GrampsjsFormEditAttribute.js | 13 ++++++++++++- src/components/GrampsjsObject.js | 1 + src/components/GrampsjsObjectForm.js | 6 ++++++ 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/components/GrampsjsAttributes.js b/src/components/GrampsjsAttributes.js index c5e1391d..e72fbbdd 100644 --- a/src/components/GrampsjsAttributes.js +++ b/src/components/GrampsjsAttributes.js @@ -10,6 +10,17 @@ import '@material/mwc-list/mwc-list-item' import {fireEvent} from '../util.js' export class GrampsjsAttributes extends GrampsjsEditableList { + static get properties() { + return { + source: {type: Boolean}, + } + } + + constructor() { + super() + this.source = false + } + row(obj) { return html` ` case 'addresses': return html`