We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f553c commit dec28e9Copy full SHA for dec28e9
src/plugins/todo/modals/add-todo-modal.js
@@ -33,9 +33,13 @@ export default class AddTodoModal extends BaseModal {
33
const form = /** @type {HTMLFormElement} */ (ev.target);
34
const data = new FormData(form);
35
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
40
const jid = data.get('jid');
41
- api.pubsub.nodes.create(jid, name);
42
+ api.pubsub.create(jid, name);
43
form.reset();
44
this.modal.hide();
45
}
0 commit comments