chore: validate edit collection activity for empty names
This commit is contained in:
parent
9b8936f53c
commit
b0c22a2b2d
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
saveCollection() {
|
||||
if (!this.$data.name) {
|
||||
this.$toast.info('Please provide a valid name for the collection');
|
||||
return;
|
||||
}
|
||||
const collectionUpdated = {
|
||||
...this.$props.editingCollection,
|
||||
name: this.$data.name
|
||||
|
|
|
|||
Loading…
Reference in a new issue