Skip to content

Commit

Permalink
Merge pull request #1214 from hypersign-protocol/bug-fixing
Browse files Browse the repository at this point in the history
hide slug at the time of creating event
  • Loading branch information
Pratap2018 authored May 27, 2022
2 parents 517a94f + 5bfb070 commit ec12a53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</div>
</div>

<div class="row g-3 align-items-center w-100 mt-4">
<div v-if="isProjectEditing" class="row g-3 align-items-center w-100 mt-4">
<div class="col-lg-3 col-md-3 text-left">
<tool-tips infoMessage="Slug of the event. It should be unique across the platform"></tool-tips><label for="slug" class="col-form-label">
</label><label for="slug"
Expand Down
6 changes: 3 additions & 3 deletions src/views/admin/Events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ export default {
this.isProjectClonning = true;
this.project = { ...project };
if (this.isProjectClonning) {
this.project.projectName = Date.now() + "_copy";
this.project.projectName = this.project.projectName+ " copy "+Date.now() ;
this.project._id = "";
this.project.slug = "";
this.project.investorsCount = 0;
Expand Down Expand Up @@ -1308,8 +1308,8 @@ export default {
// console.log(this.isProjectClonning)
if (this.isProjectClonning && this.project.slug =="") {
return true;
} else {
if (!this.project.slug) {
} else if(this.isProjectEditing ) {
if ( !this.project.slug) {
return Messages.EVENTS.VALIDATION.EMPTY_SLUG;
}
if (!isValidSlug(this.project.slug)) {
Expand Down

0 comments on commit ec12a53

Please sign in to comment.