Skip to content

Commit de4c5f2

Browse files
committed
fix add contact
1 parent ff8744e commit de4c5f2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contacts-pane",
3-
"version": "3.2.1-5",
3+
"version": "3.2.1-6",
44
"description": "Contacts Pane: Contacts manager for Address Book, Groups, and Individuals.",
55
"main": "dist/index.cjs.js",
66
"types": "dist/index.d.ts",

src/contactsPane.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ to change its state according to an ontology, comment on it, etc.
1010
**
1111
*/
1212

13-
import { html } from 'lit'
1413
import { authn } from 'solid-logic'
1514
import { saveNewGroup } from './contactLogic'
1615
import * as UI from 'solid-ui'
@@ -29,7 +28,7 @@ import { alertDialog, complain, deleteThingAndDoc, setDom, setupResponsiveStacki
2928
import * as debug from './debug'
3029
import './styles/contactsRDFFormsEnforced.css'
3130

32-
import './components/add-contact-modal'
31+
import AddContactModal from './components/add-contact-modal'
3332

3433
const ns = UI.ns
3534
const utils = UI.utils
@@ -413,10 +412,11 @@ function buildHeaderSection (ctx) {
413412
newContactButton.addEventListener('click', async function (_event) {
414413
const { book, selectedGroups } = ctx
415414

416-
UI.showDialog(html`<solid-contacts-pane-add-contact-modal
417-
.book=${book}
418-
.selectedGroups=${selectedGroups}
419-
></solid-contacts-pane-add-contact-modal>`, {
415+
UI.showDialog(AddContactModal, {
416+
props: {
417+
book,
418+
selectedGroups
419+
},
420420
onClose (person) {
421421
if (!person) {
422422
return

0 commit comments

Comments
 (0)