chore: validate edit collection activity for empty names

This commit is contained in:
jamesgeorge007
2020-01-23 14:52:52 +05:30
parent 9b8936f53c
commit b0c22a2b2d

View File

@@ -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