Blame view

src/components/Profile.vue 21.4 KB
f06677bfc   Digvijay Singh   profile screen added
1
2
  <template>
    <main class="landing-page">
298fff252   Digvijay Singh   new design added
3
4
      <!-- profile -->
      <div class="popup-wrp" style="display: none">
1620582c6   Digvijay Singh   close dialog
5
        <div class="overlay" @click="hideDialog"></div>
5684145ce   Digvijay Singh   reset password,ot...
6
        <div class="popup-set" id="add-profile" style="display: none">
298fff252   Digvijay Singh   new design added
7
          <div class="popup-header">
5684145ce   Digvijay Singh   reset password,ot...
8
9
10
11
            <div class="user-photo common_color">
              <img src="../assets/images/m-user.svg" />
            </div>
            <!-- header user -->
298fff252   Digvijay Singh   new design added
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
            <ul>
              <li>
                <a href="#"
                  ><img src="../assets/images/replace.svg" /><span
                    >Replace Avatar</span
                  ></a
                >
              </li>
              <li>
                <a href="#"
                  ><img src="../assets/images/randomise.svg" /><span
                    >Randomise Avatar</span
                  ></a
                >
              </li>
            </ul>
          </div>
          <!-- header -->
          <div class="popup-body">
            <form class="popup-forms">
              <div class="row">
                <div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
                  <div class="form-group floating-label">
                    <input
                      type="text"
                      class="form-control"
5684145ce   Digvijay Singh   reset password,ot...
38
                      v-model="userData.firstName"
298fff252   Digvijay Singh   new design added
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
                      placeholder=" "
                      id="fname"
                    />
                    <label for="fname">First Name</label>
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
                  <div class="form-group floating-label">
                    <input
                      type="text"
                      class="form-control"
                      value=""
                      placeholder=" "
                      id="lname"
5684145ce   Digvijay Singh   reset password,ot...
54
                      v-model="userData.lastName"
298fff252   Digvijay Singh   new design added
55
56
57
58
59
60
61
62
63
64
65
                    />
                    <label for="lname" class="lname">Last Name</label>
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-5 col-md-5 col-lg-5 col-xl-5">
                  <div class="form-group floating-label">
                    <input
                      type="text"
                      class="form-control"
                      value=""
5684145ce   Digvijay Singh   reset password,ot...
66
                      v-model="userData.designation"
298fff252   Digvijay Singh   new design added
67
68
69
70
71
72
73
74
75
76
77
78
                      placeholder=" "
                      id="designation"
                    />
                    <label for="designation">Designation</label>
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-7 col-md-7 col-lg-7 col-xl-7">
                  <div class="form-group floating-label">
                    <input
                      type="text"
                      class="form-control"
5684145ce   Digvijay Singh   reset password,ot...
79
                      v-model="userData.organisation"
298fff252   Digvijay Singh   new design added
80
                      id="company"
5684145ce   Digvijay Singh   reset password,ot...
81
                      placeholder=" "
298fff252   Digvijay Singh   new design added
82
83
84
85
86
87
88
89
90
91
92
                    />
                    <label for="company">Company</label>
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-12 col-md-12 col-lg-12 col-xl-12">
                  <div class="form-group floating-label">
                    <textarea
                      type="text"
                      class="form-control"
                      value=""
5684145ce   Digvijay Singh   reset password,ot...
93
                      v-model="userData.bio"
298fff252   Digvijay Singh   new design added
94
                      id="yourself"
5684145ce   Digvijay Singh   reset password,ot...
95
                      placeholder=" "
298fff252   Digvijay Singh   new design added
96
97
98
99
100
101
102
103
104
                    ></textarea>
                    <label for="yourself"
                      >Tell others a little about yourself</label
                    >
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-12 col-md-12 col-lg-12 col-xl-12">
                  <p class="things">Three things that you talk more about</p>
f06677bfc   Digvijay Singh   profile screen added
105

298fff252   Digvijay Singh   new design added
106
                  <ul class="interests">
5684145ce   Digvijay Singh   reset password,ot...
107
108
109
110
111
112
                    <li v-for="(interest, i) in userData.interests" :key="i">
                      <span>{{ interest }}</span>
                      <a
                        href="javascript:void(0);"
                        @click="removeInterest(i)"
                        class="cat-minus"
24ced0ae7   Gurvinder Singh   new changes files
113
114
115
                        ><img src="../assets/images/minus.svg"
                      /></a>
                    </li>
298fff252   Digvijay Singh   new design added
116
                    <li>
5684145ce   Digvijay Singh   reset password,ot...
117
118
119
120
121
122
                      <input
                        class=""
                        placeholder="Add interest"
                        v-model="interestName"
                      />
                      <a href="javascript:void(0);" @click="addInterest()"
298fff252   Digvijay Singh   new design added
123
124
125
126
127
128
129
                        ><img src="../assets/images/plus-circle.svg"
                      /></a>
                    </li>
                  </ul>
                </div>
                <div class="col-sm-12 col-md-12 col-lg-12 col-xl-12">
                  <p class="things">Choose Background color</p>
f06677bfc   Digvijay Singh   profile screen added
130

298fff252   Digvijay Singh   new design added
131
                  <ul class="colors">
5684145ce   Digvijay Singh   reset password,ot...
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#C4C4C4"
                        class="silver"
                        @click="changeColor('#C4C4C4')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#FFF6D7"
                        class="milk-punch"
                        @click="changeColor('#FFF6D7')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#BDDBFF"
                        class="french-pass"
                        @click="changeColor('#BDDBFF')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#C0FAFE"
                        class="cyan-french-pass"
                        @click="changeColor('#C0FAFE')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#FFDBDC"
                        class="cosmos"
                        @click="changeColor('#FFDBDC')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#FEE6AC"
                        class="cape-Honey"
                        @click="changeColor('#FEE6AC')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#E5DFF0"
                        class="snuff"
                        @click="changeColor('#E5DFF0')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#DFE7EF"
                        class="catskillWhite"
                        @click="changeColor('#DFE7EF')"
                      ></a>
                    </li>
                    <li>
                      <a
                        href="javascript:void(0);"
                        id="#FFF"
                        class="white"
                        @click="changeColor('#FFF')"
                      ></a>
                    </li>
298fff252   Digvijay Singh   new design added
204
205
                  </ul>
                </div>
5684145ce   Digvijay Singh   reset password,ot...
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
                <div class="col-lg-12 mt-50">
                  <p class="notifications">
                    Recieve notifications when you recieve a comment/ Upvote
                  </p>
                  <div class="switch-bt-wrp">
                    <label class="switch-btn">
                      <input type="checkbox" class="toggle-btn" />
                      <span class="rounded-toggle"></span>
                    </label>
                    <span class="onoff">on/off</span>
                  </div>
                </div>
                <div class="col-lg-12">
                  <p class="add-socail-ch">
                    Add your social Channels <span></span>
                  </p>
                </div>
                <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
                  <div class="form-group floating-label">
                    <select class="form-group" > 
                      <option value="Facebook">Facebook</option>
                    </select>
                    <span class="select-arrow"
                      ><img src="../assets/images/chevron-down.svg"
                    /></span>
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-8 col-md-8 col-lg-8 col-xl-8">
                  <div class="form-group floating-label">
                    <input
                      type="text"
                      class="form-control"
                      value=""
                      placeholder="Paste your profile URL here"
                      id=""
                      v-model="userData.socialMediaProfiles.facebook"
                    />
                  </div>
                </div>
                <!-- input -->
                   <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
                  <div class="form-group floating-label">
                    <select class="form-group" > 
                      <option value="Linkedin">Linkedin</option>
                    </select>
                    <span class="select-arrow"
                      ><img src="../assets/images/chevron-down.svg"
                    /></span>
                  </div>
                </div>
                <!-- input -->
                <div class="col-sm-8 col-md-8 col-lg-8 col-xl-8">
                  <div class="form-group floating-label">
                    <input
                      type="text"
                      class="form-control"
                      value=""
                      placeholder="Paste your profile URL here"
                      id=""
                       v-model="userData.socialMediaProfiles.linkedin"
                    />
                  </div>
                </div>
                <!-- input -->
             
                <!-- input -->
                <!-- <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
                  <div class="form-group floating-label">
                    <select class="form-group">
                      <option @click="addSocialLink">Add another</option>
                    </select>
                    <span class="select-arrow"
                      ><img src="../assets/images/chevron-down.svg"
                    /></span>
                  </div>
                </div> -->
                <!-- input -->
24ced0ae7   Gurvinder Singh   new changes files
284
              </div>
5684145ce   Digvijay Singh   reset password,ot...
285
286
287
              <a href="javascript:void(0);" @click="closeDialog" class="next-bt"
                >Save</a
              >
24ced0ae7   Gurvinder Singh   new changes files
288
289
290
            </form>
          </div>
          <div class="clearfix"></div>
5684145ce   Digvijay Singh   reset password,ot...
291
292
        </div>
        <!-- add profile -->
298fff252   Digvijay Singh   new design added
293
294
295
      </div>
      <!-- profile -->
      <div class="container-fluid inner-wrp">
f06677bfc   Digvijay Singh   profile screen added
296
        <nav class="navbar navbar-expand-sm spotLight-nav">
298fff252   Digvijay Singh   new design added
297
298
299
300
301
302
303
304
305
306
307
308
          <a class="navbar-brand" href="#"
            ><img src="../assets/images/logo.png"
          /></a>
          <button
            class="navbar-toggler"
            type="button"
            data-toggle="collapse"
            data-target="#navbarsExample03"
            aria-controls="navbarsExample03"
            aria-expanded="false"
            aria-label="Toggle navigation"
          >
f06677bfc   Digvijay Singh   profile screen added
309
310
311
312
            <span class="navbar-toggler-icon"></span>
            <span class="navbar-toggler-icon"></span>
            <span class="navbar-toggler-icon"></span>
          </button>
298fff252   Digvijay Singh   new design added
313

f06677bfc   Digvijay Singh   profile screen added
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
          <div class="collapse navbar-collapse" id="navbarsExample03">
            <ul class="navbar-nav mr-auto">
              <li class="nav-item active">
                <a class="nav-link" href="#">About</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">Masterclass</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">Stories</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">Library</a>
              </li>
            </ul>
          </div>
24ced0ae7   Gurvinder Singh   new changes files
330
          <div class="user-profile-photo common_color">
5684145ce   Digvijay Singh   reset password,ot...
331
332
333
334
            <a href="javascript:void(0);" @click="userprofileshowDialog"
              ><img src="../assets/images/m-user.svg"
            /></a>
            <div class="sub-menu-user" id="userprofileshow" style="display: none">
24ced0ae7   Gurvinder Singh   new changes files
335
              <ul>
5684145ce   Digvijay Singh   reset password,ot...
336
337
                <li><a href="javascript:void(0);" @click="addProfileDialog">Edit Profile</a></li>
                <li><a href="javascript:void(0);" @click="logout">Log Out</a></li>
24ced0ae7   Gurvinder Singh   new changes files
338
339
              </ul>
            </div>
f06677bfc   Digvijay Singh   profile screen added
340
          </div>
298fff252   Digvijay Singh   new design added
341
342
343
344
        </nav>
        <!-- menu wrapper -->
        <div class="row profile-tab-spc-top">
          <div class="col-sm-8 col-md-12 col-lg-8 col-xl-8">
5684145ce   Digvijay Singh   reset password,ot...
345
346
347
348
            <div class="inner-profile-ps common_color">
              <img src="../assets/images/m-user.svg" class="" />
            </div>
            <!-- user profile -->
298fff252   Digvijay Singh   new design added
349
            <div class="user-profile">
5684145ce   Digvijay Singh   reset password,ot...
350
351
352
353
              <h1>
                {{ userData.firstName }} {{ userData.lastName }}
                <a href="#" class="tags">{{ userData.role }}</a>
              </h1>
298fff252   Digvijay Singh   new design added
354
355
356
357
358
              <ul class="joined-info">
                <li>
                  <a href="#">Add your work</a>
                  <img src="../assets/images/u-info-icon.png" /> <span></span>
                </li>
5684145ce   Digvijay Singh   reset password,ot...
359
360
361
362
363
364
365
366
367
                <li>
                  <a href="#">{{ userData.karmaPoints }} Karma</a> <span></span>
                </li>
                <li>
                  <a href="#"
                    >Joined on
                    {{ moment(userData.createdAt).format("MMM YYYY") }}</a
                  >
                </li>
298fff252   Digvijay Singh   new design added
368
              </ul>
5684145ce   Digvijay Singh   reset password,ot...
369
              <p>{{ userData.bio }}</p>
298fff252   Digvijay Singh   new design added
370
371
372
373
            </div>
          </div>
          <!-- user profile -->
          <div class="col-sm-4 col-md-12 col-lg-4 col-xl-4">
5684145ce   Digvijay Singh   reset password,ot...
374
            <div class="list-style-group" v-if="userData.awards">
298fff252   Digvijay Singh   new design added
375
376
377
              <p>Awards</p>
              <ul class="list-style">
                <li>
5684145ce   Digvijay Singh   reset password,ot...
378
                  <a href="javascript:void(0);"><img src="../assets/images/icon-1.png" /></a>
298fff252   Digvijay Singh   new design added
379
380
381
382
383
                </li>
              </ul>
            </div>
            <!-- list style -->
          </div>
f06677bfc   Digvijay Singh   profile screen added
384
        </div>
298fff252   Digvijay Singh   new design added
385
386
387
388
        <div class="clearfix"></div>
        <div class="row top-brd profile-tab-spc-top">
          <div class="col-sm-8 col-md-8 col-lg-8 col-xl-8">
            <ul class="profile-tab">
5684145ce   Digvijay Singh   reset password,ot...
389
390
391
392
393
394
395
396
397
398
              <li class="active c-0">
                <a href="javascript:void(0);" @click="caseDialog"
                  >Case-studies(0)</a
                >
              </li>
              <li class="rp-all">
                <a href="javascript:void(0);" @click="repliesDialog"
                  >Comments/Replies(1)</a
                >
              </li>
298fff252   Digvijay Singh   new design added
399
400
401
402
403
404
            </ul>
          </div>
          <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4">
            <ul class="social-connects">
              <li><span>Follow</span></li>
              <li>
5684145ce   Digvijay Singh   reset password,ot...
405
                <a href="javascript:void(0);" @click="addProfileDialog" class="active"
298fff252   Digvijay Singh   new design added
406
407
408
409
410
411
412
413
414
415
416
                  ><img src="../assets/images/plus.png"
                /></a>
                <span class="connect-social-channel"
                  >Connect your social channels</span
                >
              </li>
            </ul>
          </div>
        </div>
        <!-- tab style -->
        <div class="profile-data-wrp">
24ced0ae7   Gurvinder Singh   new changes files
417
          <div class="container-fluid data-wrp" id="case-study-0">
298fff252   Digvijay Singh   new design added
418
419
420
            <div class="row">
              <div class="col-lg-12">
                <div class="profile-buttons">
5684145ce   Digvijay Singh   reset password,ot...
421
422
                  <a
                    href="javascript:void(0);"
298fff252   Digvijay Singh   new design added
423
                    class="profile-sm-bt center-and-spc bt-active"
921970bb2   Gurvinder Singh   new files
424
                    @click="addProfileDialog"
298fff252   Digvijay Singh   new design added
425
426
427
428
429
430
431
432
433
                    >Update Profile</a
                  >
                  <a href="#" class="profile-md-bt center-and-spc"
                    >Explore Case-studies</a
                  >
                  <a href="#" class="profile-lg-bt">Publish Your Case Study</a>
                </div>
              </div>
            </div>
5684145ce   Digvijay Singh   reset password,ot...
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
          </div>
          <!-- case study 0 -->
          <div
            class="container-fluid data-wrp"
            id="all-replies"
            style="display: none"
          >
            <div class="row">
              <div class="replies col-md-12">
                <div class="replies-wrp">
                  <h1>PhonePe vs GooglePay <span>Critique</span></h1>
                  <ul class="joined-info">
                    <li><a href="#">37D</a> <span></span></li>
                    <li><img src="../assets/images/heart.png" /></li>
                    <li><a href="#"> 4</a></li>
                    <li class="comment-spc">
                      <img src="../assets/images/comment.svg" />
                    </li>
                    <li><a href="#"> 6</a></li>
                  </ul>
                  <p>
                    I wonder what the difference between “<strong>
                      Assistant</strong
                    >” and “<strong>Pickup and Drop</strong>” are. If they are the
                    same, there are two “call to actions” for the same workflow
                  </p>
                </div>
                <!-- replies wrapper -->
              </div>
              <!-- all card wrpper -->
            </div>
          </div>
          <!-- all Relpies -->
298fff252   Digvijay Singh   new design added
467
468
        </div>
        <!-- data wrp -->
f06677bfc   Digvijay Singh   profile screen added
469
470
471
472
473
474
        <!-- body wrapper -->
      </div>
    </main>
  </template>
  
  <script>
f06677bfc   Digvijay Singh   profile screen added
475
476
477
  import Vue from "vue";
  import router from "../router";
  import $ from "jquery";
5684145ce   Digvijay Singh   reset password,ot...
478
  import axios from "axios";
f06677bfc   Digvijay Singh   profile screen added
479
480
481
482
483
484
485
  
  export default {
    name: "Profile",
  
    data() {
      return {
        loggedinFlag: false,
298fff252   Digvijay Singh   new design added
486
        usertoken: null,
5684145ce   Digvijay Singh   reset password,ot...
487
488
489
490
491
        userData: {},
        interestName: null,
        oldId: null,
        socialLink:null,
        currentSocialLinkName:null,
f06677bfc   Digvijay Singh   profile screen added
492
493
      };
    },
298fff252   Digvijay Singh   new design added
494
    mounted() {
5684145ce   Digvijay Singh   reset password,ot...
495
496
497
498
499
500
      this.userData = {};
      this.socialLink = [];
      this.userData.interests = [];
      this.userData.socialMediaProfiles = {};
      this.userData.socialMediaProfiles.facebook = null;
      this.userData.socialMediaProfiles.linkedin = null;
298fff252   Digvijay Singh   new design added
501
502
503
504
505
506
      var userdata = localStorage.getItem("spotlight_usertoken");
      if (userdata) {
        userdata = JSON.parse(userdata);
        this.usertoken = userdata.token;
        this.getProfile();
      }
298fff252   Digvijay Singh   new design added
507
    },
f06677bfc   Digvijay Singh   profile screen added
508
    methods: {
298fff252   Digvijay Singh   new design added
509
      goToSignUp() {
f06677bfc   Digvijay Singh   profile screen added
510
511
512
513
514
        this.$router.push("/signup");
      },
      goToReset() {
        this.$router.push("/reset");
      },
5684145ce   Digvijay Singh   reset password,ot...
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
      logout() {
        this.$router.push("/");
      },
      addSocialLink(obj){
        this.socialLink.push()
  
      },
      addInterest() {
        console.log(this.userData.interests.length, "called", this.interestName);
        if (this.userData.interests.length <= 2) {
          this.userData.interests.push(this.interestName);
          this.interestName = null;
        } else {
          this.$toaster.info("Only 3 interest are allowed");
        }
      },
      removeInterest(i) {
        this.userData.interests.splice(i, 1);
      },
      assignClass() {
        var element = document.getElementById(this.userData.bgColor);
        element.classList.add("active");
         var cols = document.getElementsByClassName("common_color");
        for (var i = 0; i < cols.length; i++) {
          cols[i].style.backgroundColor = this.userData.bgColor;
        }
        
      },
      changeColor(clr) {
        console.log(this.oldId,"clr",clr);
        var element = document.getElementById(clr);
        element.classList.add("active");
        var removeelement = document.getElementById(this.oldId);
        removeelement.classList.remove("active");
        this.oldId = clr;
        var cols = document.getElementsByClassName("common_color");
        for (var i = 0; i < cols.length; i++) {
          cols[i].style.backgroundColor =  clr;
        }
        this.userData.bgColor = clr;
  
      },
298fff252   Digvijay Singh   new design added
557
558
      getProfile() {
        axios
5684145ce   Digvijay Singh   reset password,ot...
559
560
561
562
563
564
565
566
567
568
569
570
571
572
          .get("/profile", {
            headers: {
              Authorization: "Bearer " + this.usertoken,
            },
          })
          .then((response) => {
            this.userData = response.data.data;
             this.oldId  = this.userData.bgColor;
            console.log(this.oldId,"this.userData.",this.userData.bgColor);
  
            this.assignClass();
            console.log(response.data.data);
          })
          .catch((error) => console.log(error));
298fff252   Digvijay Singh   new design added
573
      },
5684145ce   Digvijay Singh   reset password,ot...
574
      saveProfile() {
298fff252   Digvijay Singh   new design added
575
        var obj = {};
5684145ce   Digvijay Singh   reset password,ot...
576
577
        this.userData.name =
          this.userData.firstName + " " + this.userData.lastName;
298fff252   Digvijay Singh   new design added
578
        obj = Object.assign(obj, this.userData);
5684145ce   Digvijay Singh   reset password,ot...
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
        // if(!obj.socialMediaProfiles){
        //   obj.socialMediaProfiles = {};
        // }
        delete obj.createdAt;
        delete obj.email;
        delete obj.role;
        delete obj.verified;
        delete obj.updatedAt;
        delete obj.__v;
        delete obj._id;
        delete obj.karmaPoints;
        delete obj.awards;
        delete obj.socialLogin;
        axios
          .put("/profile", obj, {
298fff252   Digvijay Singh   new design added
594
595
596
597
598
599
            headers: {
              Authorization: "Bearer " + this.usertoken,
            },
          })
          .then((response) => {
            // this.userData = response.data.data;
5684145ce   Digvijay Singh   reset password,ot...
600
            this.$toaster.success('Profile Updated');
298fff252   Digvijay Singh   new design added
601
602
            console.log(response.data.data);
          })
5684145ce   Digvijay Singh   reset password,ot...
603
604
605
606
607
          .catch((error) => {
            if (error.response) {
              this.$toaster.error(error.response.data.message);
            }
          });
298fff252   Digvijay Singh   new design added
608
      },
921970bb2   Gurvinder Singh   new files
609
      addProfileDialog() {
298fff252   Digvijay Singh   new design added
610
        $(".inner-wrp").addClass("body-blur");
5684145ce   Digvijay Singh   reset password,ot...
611
        $("#add-social-links").hide();
921970bb2   Gurvinder Singh   new files
612
        $(".popup-wrp, #add-profile").show();
298fff252   Digvijay Singh   new design added
613
      },
921970bb2   Gurvinder Singh   new files
614
      nextProfileDialog() {
5684145ce   Digvijay Singh   reset password,ot...
615
616
617
618
619
620
621
        $("#add-profile").hide();
        $("#add-social-links").show();
        this.saveProfile();
      },
      closeDialog() {
        $(".popup-wrp").hide();
        $(".inner-wrp").removeClass("body-blur");
298fff252   Digvijay Singh   new design added
622
        this.saveProfile();
298fff252   Digvijay Singh   new design added
623
      },
1620582c6   Digvijay Singh   close dialog
624
625
626
627
      hideDialog() {
        $(".popup-wrp").hide();
        $(".inner-wrp").removeClass("body-blur");
      },
5684145ce   Digvijay Singh   reset password,ot...
628
629
630
631
632
633
634
635
636
637
638
639
640
      ///
      caseDialog() {
        $(".rp-all").removeClass("active");
        $(".c-0").addClass("active");
        $("#all-replies").hide();
        $("#case-study-0").show();
      },
      repliesDialog() {
        $(".c-0").removeClass("active");
        $(".rp-all").addClass("active");
        $("#case-study-0").hide();
        $("#all-replies").show();
      },
24ced0ae7   Gurvinder Singh   new changes files
641

5684145ce   Digvijay Singh   reset password,ot...
642
643
644
      userprofileshowDialog() {
        $("#userprofileshow").toggle();
      },
f06677bfc   Digvijay Singh   profile screen added
645
646
647
    },
  };
  </script>