Skip to content

Commit dec28e9

Browse files
committed
Fixup
1 parent 79f553c commit dec28e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/todo/modals/add-todo-modal.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ export default class AddTodoModal extends BaseModal {
3333
const form = /** @type {HTMLFormElement} */ (ev.target);
3434
const data = new FormData(form);
3535
const name = data.get('name');
36+
37+
// TODO: Look for a PubSub service JID from the user's domain and use that as the JID.
38+
// If multiple JIDs are found, let the user choose.
39+
// If no JID is found, give the user an input element to manually enter a JID
3640
const jid = data.get('jid');
3741

38-
api.pubsub.nodes.create(jid, name);
42+
api.pubsub.create(jid, name);
3943
form.reset();
4044
this.modal.hide();
4145
}

0 commit comments

Comments
 (0)