chore: validate edit collection activity for empty names
This commit is contained in:
@@ -59,6 +59,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
saveCollection() {
|
saveCollection() {
|
||||||
|
if (!this.$data.name) {
|
||||||
|
this.$toast.info('Please provide a valid name for the collection');
|
||||||
|
return;
|
||||||
|
}
|
||||||
const collectionUpdated = {
|
const collectionUpdated = {
|
||||||
...this.$props.editingCollection,
|
...this.$props.editingCollection,
|
||||||
name: this.$data.name
|
name: this.$data.name
|
||||||
|
|||||||
Reference in New Issue
Block a user