- Fix empty folder name

This commit is contained in:
Vincent BRIDIER 2021-01-15 15:27:53 +01:00
parent 09d370e016
commit 010d7b2e34
2 changed files with 5 additions and 1 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View file

@ -199,6 +199,10 @@
});
},
addFolder() {
if (this.newFolderFR.length < 1){
this.showAlert("Nom du dossier vide.");
return;
}
this.done = false;
let _this2 = this;
axios.post('/add-folder', {name: JSON.stringify({fr: this.newFolderFR}), order: this.nestableItems.length})