Trim input for app name
This commit is contained in:
@@ -563,7 +563,7 @@
|
|||||||
}).filter(item => item));
|
}).filter(item => item));
|
||||||
}
|
}
|
||||||
|
|
||||||
searchCovers(this.editForm["name"].toString())
|
searchCovers(this.editForm["name"].toString().trim())
|
||||||
.then(list => this.coverCandidates = list)
|
.then(list => this.coverCandidates = list)
|
||||||
.finally(() => this.coverSearching = false);
|
.finally(() => this.coverSearching = false);
|
||||||
},
|
},
|
||||||
@@ -595,7 +595,8 @@
|
|||||||
.finally(() => this.coverFinderBusy = false);
|
.finally(() => this.coverFinderBusy = false);
|
||||||
},
|
},
|
||||||
save() {
|
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["launching"];
|
||||||
delete this.editForm["id"];
|
delete this.editForm["id"];
|
||||||
fetch("./api/apps", {
|
fetch("./api/apps", {
|
||||||
|
|||||||
Reference in New Issue
Block a user