chore: make use of toast

This commit is contained in:
jamesgeorge007
2020-01-21 19:45:52 +05:30
parent fcdf93c5e5
commit e16019dcbf

View File

@@ -114,8 +114,7 @@ export const mutations = {
const { name } = collection
const duplicateCollection = collections.some(item => item.name === name)
if (duplicateCollection) {
alert('Duplicate collection');
return;
this.$toast.info('Duplicate collection');
}
collections.push({
name: "",