UI: Decode URL in text field for better readability
This PR is a follow-up to #2138. It extends the URL decoding logic to include the edit collection dialogs, ensuring a consistent user experience.
This commit is contained in:
@@ -196,7 +196,7 @@ export class CreateEditCollectionScene {
|
|||||||
this._remove_invalid_types();
|
this._remove_invalid_types();
|
||||||
this._html_scene.classList.remove("hidden");
|
this._html_scene.classList.remove("hidden");
|
||||||
if (this._edit && this._title_form) {
|
if (this._edit && this._title_form) {
|
||||||
this._title_form.textContent = this._collection.displayname || this._collection.href;
|
this._title_form.textContent = this._collection.displayname || decodeURIComponent(this._collection.href);
|
||||||
}
|
}
|
||||||
this._fill_form();
|
this._fill_form();
|
||||||
this._submit_btn.onclick = () => this._onsubmit();
|
this._submit_btn.onclick = () => this._onsubmit();
|
||||||
|
|||||||
Reference in New Issue
Block a user