chore: make use of toast
This commit is contained in:
@@ -114,8 +114,7 @@ export const mutations = {
|
|||||||
const { name } = collection
|
const { name } = collection
|
||||||
const duplicateCollection = collections.some(item => item.name === name)
|
const duplicateCollection = collections.some(item => item.name === name)
|
||||||
if (duplicateCollection) {
|
if (duplicateCollection) {
|
||||||
alert('Duplicate collection');
|
this.$toast.info('Duplicate collection');
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
collections.push({
|
collections.push({
|
||||||
name: "",
|
name: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user