- Fix empty folder name
This commit is contained in:
parent
09d370e016
commit
010d7b2e34
2 changed files with 5 additions and 1 deletions
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue