-
-
Notifications
You must be signed in to change notification settings - Fork 805
Open
Description
This is a minor suggestion for a small improvement.
Is your feature request related to a problem? Please describe.
This is the current behaviour:
- Click on the Settings icon
- Click on Services
- Converse shows a field already filled with the current domain, and its results
- Of course, the user can enter a different domain in the field and click the button
- Now click on Commands
- Converse shows an empty field for the user to enter some domain or JID
Describe the solution you'd like
It would be great if Converse fills the field in step 6 with the server domain, just like it already does with the field in step 3.
Describe alternatives you've considered
Right now, for my personal usage in my local test server, I simply force "localhost" like this:
diff --git a/src/plugins/adhoc-views/templates/ad-hoc.js b/src/plugins/adhoc-views/templates/ad-hoc.js
index 78b119cf1..fcb0272d6 100644
--- a/src/plugins/adhoc-views/templates/ad-hoc.js
+++ b/src/plugins/adhoc-views/templates/ad-hoc.js
@@ -18,6 +18,7 @@ export default (el) => {
const i18n_fetch_commands = __('List available commands');
const i18n_jid_placeholder = __('XMPP Address');
const i18n_no_commands_found = __('No commands found');
+ const input_jid = __('localhost');
return html`
${el.alert ? html`<div class="alert alert-${el.alert_type}" role="alert">${el.alert}</div>` : ''}
${el.note ? html`<p class="form-help">${el.note}</p>` : ''}
@@ -31,6 +32,7 @@ export default (el) => {
.getAutoCompleteList="${getAutoCompleteList}"
required
placeholder="${i18n_jid_placeholder}"
+ value="${input_jid}"
name="jid"
>
</converse-autocomplete>Additional context
Tested using Converse.js 12.0.0 and git master, with ejabberd git master and Chrome 143.0.7499.169.
Metadata
Metadata
Assignees
Labels
No labels