Skip to content

Commit

Permalink
Merge pull request #945 from /issues/944
Browse files Browse the repository at this point in the history
Duplicate Tag issues fixed
  • Loading branch information
Pratap2018 authored Feb 17, 2022
2 parents d3f07ea + 8a5a8ea commit b3ea498
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,22 @@ export default {
isvalid = false
this.notifyErr(Messages.EVENTS.CREATE_EDIT_EVENT.CHOOSE_TAG)
}
else if(this.isPresent()){
isvalid = false
this.notifyErr(Messages .EVENTS.CREATE_EDIT_EVENT.DUPLICATE_TAG)
}
break;
default:
this.notifyErr(Messages.EVENTS.ACTIONS.INVALID_EVENT_TYPE)
}
return isvalid
},
isPresent(){
const element = this.eventActionList.find((value) => {
return value.type === this.selected.type;
});
return typeof element === "undefined" ? false : true;
},
handleEventActionClick(idx){
this.flash=idx
Expand Down
3 changes: 2 additions & 1 deletion src/utils/messages/admin/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const EVENTS = {
THEME_NOT_WHITE: "Theme color cannot be white",
THEME_COLOR_NOT_SAME: "Theme color and font color cannot be same",
CHOOSE_ATLEAST_ONE_TAG: "Please choose atleast one tag",
CHOOSE_TAG:"Please choose Tag"
CHOOSE_TAG:"Please choose Tag",
DUPLICATE_TAG:"Duplicate tags are not allowed"
},

ACTIONS:{
Expand Down

0 comments on commit b3ea498

Please sign in to comment.