Commit 8530576f31b1b275bdda3cfe98c0e344516180ea

Authored by Digvijay Singh
1 parent 4d117376ee
Exists in admin

ui fixes

Showing 1 changed file with 8 additions and 2 deletions   Show diff stats
src/components/Profile.vue
... ... @@ -202,6 +202,8 @@
202 202 class=""
203 203 placeholder="Add Focus Areas"
204 204 v-model="focusName"
  205 + v-on:keyup.enter="addInsight('focus')"
  206 +
205 207 />
206 208 <a href="javascript:void(0);" @click="addInsight('focus')"
207 209 ><img src="../assets/images/plus-circle.svg"
... ... @@ -519,7 +521,6 @@ export default {
519 521 logoURL: null,
520 522 app: null,
521 523 type: null,
522   - focus: "",
523 524 readTime: null,
524 525 platForm: null,
525 526 authors: [],
... ... @@ -545,6 +546,9 @@ export default {
545 546 if (introData) {
546 547 introData = JSON.parse(introData);
547 548 console.log("introData", introData);
  549 + if(introData.intro.focus){
  550 + delete introData.intro.focus;
  551 + }
548 552 this.caseStudy.caseStudyDetails.intro = introData.intro;
549 553 this.caseStudy.caseStudyDetails.userId = introData.userId;
550 554 this.caseStudy.caseStudyDetails.outro = introData.outro;
... ... @@ -593,10 +597,11 @@ export default {
593 597 async slideSelected(i) {
594 598 console.log("id is", this.templateList[i]);
595 599 var slideMetadata = {};
  600 + var obj = Object.assign( this.templateList[i],{});
596 601 // slideMetadata = await this.getMeatda(this.templateList[i]._id);
597 602 this.slideId = null;
598 603 // this.templateList[i].metaData = slideMetadata.metaData;
599   - this.caseStudy.slides.push(this.templateList[i]);
  604 + this.caseStudy.slides.push(obj);
600 605 console.log("this.caseStudy.slides", this.caseStudy.slides);
601 606 },
602 607 async insightSelected(data) {
... ... @@ -903,6 +908,7 @@ export default {
903 908 slides.length / 3
904 909 ).toString();
905 910 obj.slides = slides;
  911 + delete obj.caseStudyDetails.intro.focus;
906 912 axios
907 913 .put("/superAdmin/caseStudy", obj, {
908 914 headers: {
... ...