diff --git a/src/mixins/notificationMixins.js b/src/mixins/notificationMixins.js index a33ffaa9..d14d59f1 100644 --- a/src/mixins/notificationMixins.js +++ b/src/mixins/notificationMixins.js @@ -29,6 +29,16 @@ export default{ text: msg, }); }, + notifyInfo(msg) { + this.isLoading = false; + this.$notify({ + group: "foo", + title: "Information", + type: "info", + text: msg, + }); + }, + } } \ No newline at end of file diff --git a/src/views/admin/Events.vue b/src/views/admin/Events.vue index ea1e8458..40524d5b 100644 --- a/src/views/admin/Events.vue +++ b/src/views/admin/Events.vue @@ -1103,7 +1103,7 @@ export default { throw new Error("Error while deleting event"); } }else{ - throw new Error("looks like you were about to delete a event by mistake"); + throw new Error("Looks like you were about to delete a event by mistake"); } } }); @@ -1192,9 +1192,13 @@ export default { setTimeout(() => { this.whitelistingLink = ""; }, 10000); + this.notifySuccess( Messages.EVENTS.CREATE_EDIT_EVENT.PROJECT_SAVED + resp.data._id ); + if(resp.data.projectName.includes('copy')){ + this.notifyWarning("Clone of '"+resp.data.projectName.split('copy')[0]+"' created"); + } this.resetAllValues(); if (this.isProjectEditing) {