empty flag dossier name fix
This commit is contained in:
@@ -446,6 +446,11 @@ export default {
|
||||
},
|
||||
onCreateFlagColl () {
|
||||
console.log("Card onCreateFlagColl", this.new_folder_name)
|
||||
// same rule as the add button's "active" state: never create a nameless
|
||||
// folder (a null flag label breaks token info, hence recurring payments)
|
||||
if (this.new_folder_name.trim().length <= 4 || this.is_creating_folder) {
|
||||
return
|
||||
}
|
||||
this.is_creating_folder = true;
|
||||
this.createFlagColl(this.new_folder_name)
|
||||
.then(data => {
|
||||
@@ -460,6 +465,9 @@ export default {
|
||||
this.loadingFlag = false;
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
this.is_creating_folder = false;
|
||||
})
|
||||
},
|
||||
flagIsActive(collid) {
|
||||
// console.log(this.item.uuid)
|
||||
|
||||
Reference in New Issue
Block a user