diff --git a/src_assets/common/assets/web/apps.html b/src_assets/common/assets/web/apps.html index 3db9177c..476f4a3d 100644 --- a/src_assets/common/assets/web/apps.html +++ b/src_assets/common/assets/web/apps.html @@ -563,7 +563,7 @@ }).filter(item => item)); } - searchCovers(this.editForm["name"].toString()) + searchCovers(this.editForm["name"].toString().trim()) .then(list => this.coverCandidates = list) .finally(() => this.coverSearching = false); }, @@ -595,7 +595,8 @@ .finally(() => this.coverFinderBusy = false); }, save() { - this.editForm["image-path"] = this.editForm["image-path"].toString().replace(/"/g, ''); + this.editForm.name = this.editForm.name.trim(); + this.editForm["image-path"] = this.editForm["image-path"].toString().trim().replace(/"/g, ''); delete this.editForm["launching"]; delete this.editForm["id"]; fetch("./api/apps", {