Blame view

src/pages/Notification/notification.vue 15.3 KB
55f72b7d7   Neeraj Sharma   add new page are ...
1
  <template>
68d742034   Neeraj Sharma   implement new des...
2
3
    <v-container fluid class="body-color">
      <!-- ****** EDITS  NOTIFICATION DETAILS ****** -->
db965de89   Amber Dev   added dialog pers...
4
      <v-dialog v-model="editNotificationDialog" max-width="500px" persistent>
68d742034   Neeraj Sharma   implement new des...
5
        <v-flex xs12 sm12>
4dd422bef   Shikha Mishra   change ui of card...
6
          <v-card flat class="Card-style pa-3">
68d742034   Neeraj Sharma   implement new des...
7
8
9
10
11
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
            <v-layout>
              <v-flex xs12>
                <label class="title text-xs-center">Edit Notification</label>
                <v-icon size="24" class="right" @click="editNotificationDialog = false">cancel</v-icon>
              </v-flex>
            </v-layout>
            <v-flex xs12 sm12>
              <v-layout>
                <v-flex xs4 class="pt-4 subheading">
                  <label class="right">Title:</label>
                </v-flex>
                <v-flex xs8 sm8 class="ml-3">
                  <v-text-field
                    v-model="editedItem.title"
                    placeholder="fill your Title"
                    name="name"
                    type="text"
                  ></v-text-field>
                </v-flex>
              </v-layout>
            </v-flex>
            <v-flex xs12 sm12>
              <v-layout>
                <v-flex xs4 class="pt-4 subheading">
                  <label class="right">Description:</label>
                </v-flex>
                <v-flex xs8 sm8 class="ml-3">
                  <v-text-field
                    placeholder="fill your Description"
                    v-model="editedItem.description"
                    type="text"
                  ></v-text-field>
                </v-flex>
              </v-layout>
            </v-flex>
            <v-layout>
              <v-flex xs12>
                <v-card-actions>
                  <v-spacer></v-spacer>
                  <v-btn round dark @click="save" :loading="editLoading" class="add-button">Save</v-btn>
                  <v-spacer></v-spacer>
                </v-card-actions>
              </v-flex>
            </v-layout>
          </v-card>
        </v-flex>
      </v-dialog>
55f72b7d7   Neeraj Sharma   add new page are ...
54

68d742034   Neeraj Sharma   implement new des...
55
      <!-- ****** PROFILE VIEW NOTIFICATION DEATILS ******  -->
55f72b7d7   Neeraj Sharma   add new page are ...
56

db965de89   Amber Dev   added dialog pers...
57
      <v-dialog v-model="profileNotificationDialog" max-width="400px" persistent>
4dd422bef   Shikha Mishra   change ui of card...
58
        <v-card flat class="Card-style pa-3">
68d742034   Neeraj Sharma   implement new des...
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">View Notification</label>
              <v-icon size="24" class="right" @click="profileNotificationDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-card-text>
            <v-container grid-list-md>
              <v-layout wrap>
                <v-flex xs12>
                  <v-layout>
                    <v-flex xs4 sm6>
                      <h5 class="right my-1">
                        <b>Title:</b>
                      </h5>
                    </v-flex>
                    <v-flex sm6 xs8>
                      <h5 class="my-1">{{ editedItem.title }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-layout>
                  <v-flex xs4 sm6>
                    <h5 class="right my-1">
                      <b>Description:</b>
                    </h5>
                  </v-flex>
                  <v-flex sm6 xs8>
                    <h5 class="my-1">{{ editedItem.description }}</h5>
                  </v-flex>
                </v-layout>
              </v-layout>
            </v-container>
          </v-card-text>
        </v-card>
      </v-dialog>
      <!-- ****** NOTIFICATION TABLE ****** -->
      <v-toolbar color="transparent" flat>
        <v-btn
          fab
          dark
          class="open-dialog-button hidden-xl-only hidden-md-only hidden-lg-only"
          small
          @click="addNotificationDialog = true"
        >
          <v-icon dark>add</v-icon>
        </v-btn>
        <v-btn
          round
          class="open-dialog-button hidden-sm-only hidden-xs-only"
          dark
          @click="addNotificationDialog = true"
        >
          <v-icon class="white--text pr-1" size="20">add</v-icon>Add Notification
        </v-btn>
        <v-spacer></v-spacer>
        <v-card-title class="body-1" v-show="show">
          <v-btn icon large flat @click="displaySearch">
            <v-avatar size="27">
aa310d61a   Shikha Mishra   added functionali...
118
              <img src="/static/icon/search.png" alt="icon" />
68d742034   Neeraj Sharma   implement new des...
119
120
121
            </v-avatar>
          </v-btn>
        </v-card-title>
8e8d14254   Shikha Mishra   Cleared data whil...
122
        <v-flex xs8 sm8 md3 lg2 v-if="showSearch">
68d742034   Neeraj Sharma   implement new des...
123
          <v-layout>
8e8d14254   Shikha Mishra   Cleared data whil...
124
125
126
127
128
129
130
            <v-text-field
              autofocus
              v-model="search"
              label="Search"
              prepend-inner-icon="search"
              color="primary"
            ></v-text-field>
68d742034   Neeraj Sharma   implement new des...
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
            <v-icon @click="closeSearch" color="error">close</v-icon>
          </v-layout>
        </v-flex>
      </v-toolbar>
      <v-data-table
        :headers="headers"
        :items="notifications"
        :pagination.sync="pagination"
        :search="search"
      >
        <template slot="items" slot-scope="props">
          <tr class="tr">
            <td class="td td-row">{{ props.index + 1}}</td>
            <td class="td td-row text-xs-center">{{ props.item.title}}</td>
            <td class="td td-row text-xs-center">{{ props.item.description}}</td>
            <td class="td td-row text-xs-center">
              <span>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:25px; height:25px; "
                    class="mr-3"
                    @click="profile(props.item)"
aa310d61a   Shikha Mishra   added functionali...
154
                    src="/static/icon/view.png"
68d742034   Neeraj Sharma   implement new des...
155
156
157
158
159
160
161
162
163
                  />
                  <span>View</span>
                </v-tooltip>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:20px; height:18px; "
                    class="mr-3"
                    @click="editItem(props.item)"
aa310d61a   Shikha Mishra   added functionali...
164
                    src="/static/icon/edit.png"
68d742034   Neeraj Sharma   implement new des...
165
166
167
168
169
170
171
172
173
                  />
                  <span>Edit</span>
                </v-tooltip>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:20px; height:20px; "
                    class="mr-3"
                    @click="deleteItem(props.item)"
aa310d61a   Shikha Mishra   added functionali...
174
                    src="/static/icon/delete.png"
68d742034   Neeraj Sharma   implement new des...
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
                  />
                  <span>Delete</span>
                </v-tooltip>
              </span>
            </td>
          </tr>
        </template>
        <v-alert
          slot="no-results"
          :value="true"
          color="error"
          icon="warning"
        >Your search for "{{ search }}" found no results.</v-alert>
      </v-data-table>
  
      <!-- ****** ADD MULTIPLE NOTIFICATION ****** -->
4dd422bef   Shikha Mishra   change ui of card...
191
192
193
194
195
196
197
      <v-dialog
        v-model="addNotificationDialog"
        max-width="480px"
        v-if="addNotificationDialog"
        persistent
      >
        <v-card flat class="Card-style pa-2">
68d742034   Neeraj Sharma   implement new des...
198
199
200
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">Add Notification</label>
8e8d14254   Shikha Mishra   Cleared data whil...
201
              <v-icon size="24" class="right" @click="closeAddNotificationModel">cancel</v-icon>
68d742034   Neeraj Sharma   implement new des...
202
203
204
205
206
207
            </v-flex>
          </v-layout>
          <v-form ref="form" v-model="valid" lazy-validation>
            <v-container fluid fill-height>
              <v-layout align-center wrap>
                <v-flex xs12>
f4df757fe   Neeraj Sharma   responsive vie in...
208
209
210
                  <v-layout>
                    <v-flex xs4 class="pt-4 subheading">
                      <label class="right">Title:</label>
a17c68a03   Neeraj Sharma   implement two rou...
211
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
212
                    <v-flex xs8 sm8 class="ml-3">
f4df757fe   Neeraj Sharma   responsive vie in...
213
                      <v-text-field
68d742034   Neeraj Sharma   implement new des...
214
                        v-model="addNotification.title"
f4df757fe   Neeraj Sharma   responsive vie in...
215
                        placeholder="fill your Title"
f4df757fe   Neeraj Sharma   responsive vie in...
216
                        type="text"
68d742034   Neeraj Sharma   implement new des...
217
218
                        :rules="titleRules"
                        required
f4df757fe   Neeraj Sharma   responsive vie in...
219
                      ></v-text-field>
a17c68a03   Neeraj Sharma   implement two rou...
220
                    </v-flex>
f4df757fe   Neeraj Sharma   responsive vie in...
221
222
                  </v-layout>
                </v-flex>
68d742034   Neeraj Sharma   implement new des...
223
                <v-flex xs12>
f4df757fe   Neeraj Sharma   responsive vie in...
224
225
226
227
                  <v-layout>
                    <v-flex xs4 class="pt-4 subheading">
                      <label class="right">Description:</label>
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
228
                    <v-flex xs8 sm8 class="ml-3">
f4df757fe   Neeraj Sharma   responsive vie in...
229
230
                      <v-text-field
                        placeholder="fill your Description"
68d742034   Neeraj Sharma   implement new des...
231
232
                        :rules="descriptionRules"
                        v-model="addNotification.description"
f4df757fe   Neeraj Sharma   responsive vie in...
233
                        type="text"
68d742034   Neeraj Sharma   implement new des...
234
                        required
f4df757fe   Neeraj Sharma   responsive vie in...
235
236
237
238
239
                      ></v-text-field>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-layout>
68d742034   Neeraj Sharma   implement new des...
240
241
242
243
244
245
246
247
248
                  <v-flex xs12 sm12>
                    <v-layout class="hidden-xs-only hidden-sm-only right">
                      <v-btn @click="clear" round class="clear-button" dark>Clear</v-btn>
                      <v-btn @click="submit" round dark :loading="loading" class="add-button">Add</v-btn>
                    </v-layout>
                    <v-card-actions class="hidden-md-only hidden-lg-only hidden-xl-only">
                      <v-spacer></v-spacer>
                      <v-btn @click="clear" round class="clear-button" dark>Clear</v-btn>
                      <v-btn @click="submit" round dark :loading="loading" class="add-button">Add</v-btn>
f4df757fe   Neeraj Sharma   responsive vie in...
249
                      <v-spacer></v-spacer>
f4df757fe   Neeraj Sharma   responsive vie in...
250
251
252
                    </v-card-actions>
                  </v-flex>
                </v-layout>
68d742034   Neeraj Sharma   implement new des...
253
254
255
256
257
258
259
260
261
262
263
264
265
              </v-layout>
            </v-container>
          </v-form>
        </v-card>
      </v-dialog>
      <v-snackbar
        :timeout="timeout"
        :top="y === 'top'"
        :right="x === 'right'"
        :vertical="mode === 'vertical'"
        v-model="snackbar"
        :color="color"
      >{{ text }}</v-snackbar>
55f72b7d7   Neeraj Sharma   add new page are ...
266
267
268
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
68d742034   Neeraj Sharma   implement new des...
269
    </v-container>
55f72b7d7   Neeraj Sharma   add new page are ...
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
  </template>
  
  <script>
  import http from "@/Services/http.js";
  import Util from "@/util";
  
  export default {
    data: () => ({
      snackbar: false,
      y: "top",
      x: "right",
      mode: "",
      timeout: 3000,
      text: "",
      loading: false,
68d742034   Neeraj Sharma   implement new des...
285
      editLoading: false,
55f72b7d7   Neeraj Sharma   add new page are ...
286
287
      date: null,
      search: "",
68d742034   Neeraj Sharma   implement new des...
288
289
290
      color: "",
      show: true,
      showSearch: false,
a17c68a03   Neeraj Sharma   implement two rou...
291
      showLoader: false,
68d742034   Neeraj Sharma   implement new des...
292
293
      profileNotificationDialog: false,
      editNotificationDialog: false,
55f72b7d7   Neeraj Sharma   add new page are ...
294
      valid: true,
68d742034   Neeraj Sharma   implement new des...
295
      addNotificationDialog: false,
55f72b7d7   Neeraj Sharma   add new page are ...
296
      pagination: {
8e8d14254   Shikha Mishra   Cleared data whil...
297
        rowsPerPage: 10,
55f72b7d7   Neeraj Sharma   add new page are ...
298
299
300
301
302
      },
      imageData: {},
      imageName: "",
      imageUrl: "",
      imageFile: "",
8e8d14254   Shikha Mishra   Cleared data whil...
303
304
      titleRules: [(v) => !!v || " Tilte is required"],
      descriptionRules: [(v) => !!v || " Description is required"],
55f72b7d7   Neeraj Sharma   add new page are ...
305
306
307
      headers: [
        {
          text: "No",
68d742034   Neeraj Sharma   implement new des...
308
          align: "",
55f72b7d7   Neeraj Sharma   add new page are ...
309
          sortable: false,
8e8d14254   Shikha Mishra   Cleared data whil...
310
          value: "No",
55f72b7d7   Neeraj Sharma   add new page are ...
311
312
        },
        { text: "Title", value: "title", sortable: false, align: "center" },
a17c68a03   Neeraj Sharma   implement two rou...
313
314
315
316
        {
          text: "Description",
          value: "description",
          sortable: false,
8e8d14254   Shikha Mishra   Cleared data whil...
317
          align: "center",
a17c68a03   Neeraj Sharma   implement two rou...
318
        },
8e8d14254   Shikha Mishra   Cleared data whil...
319
        { text: "Action", value: "", sortable: false, align: "center" },
55f72b7d7   Neeraj Sharma   add new page are ...
320
      ],
68d742034   Neeraj Sharma   implement new des...
321
      notifications: [],
55f72b7d7   Neeraj Sharma   add new page are ...
322
      editedIndex: -1,
a17c68a03   Neeraj Sharma   implement two rou...
323
324
      addNotification: {
        title: "",
8e8d14254   Shikha Mishra   Cleared data whil...
325
        description: "",
55f72b7d7   Neeraj Sharma   add new page are ...
326
327
      },
      editedItem: {
a17c68a03   Neeraj Sharma   implement two rou...
328
        title: "",
8e8d14254   Shikha Mishra   Cleared data whil...
329
330
        description: "",
      },
55f72b7d7   Neeraj Sharma   add new page are ...
331
    }),
8e8d14254   Shikha Mishra   Cleared data whil...
332
333
334
335
336
337
338
    watch: {
      addNotificationDialog: function (val) {
        if (!val) {
          this.addNotification = [];
        }
      },
    },
55f72b7d7   Neeraj Sharma   add new page are ...
339
340
341
342
343
344
    methods: {
      pickFile() {
        this.$refs.image.click();
      },
  
      onFilePicked(e) {
55f72b7d7   Neeraj Sharma   add new page are ...
345
346
347
348
349
350
351
352
353
354
355
356
357
        const files = e.target.files;
        this.imageData.upload = e.target.files[0];
        if (files[0] !== undefined) {
          this.imageName = files[0].name;
          if (this.imageName.lastIndexOf(".") <= 0) {
            return;
          }
          const fr = new FileReader();
          fr.readAsDataURL(files[0]);
          fr.addEventListener("load", () => {
            this.imageUrl = fr.result;
            this.imageFile = files[0]; // this is an image file that can be sent to server...
            this.imageData.imageUrl = URL.createObjectURL(this.imageFile);
55f72b7d7   Neeraj Sharma   add new page are ...
358
359
360
361
362
363
364
          });
        } else {
          this.imageName = "";
          this.imageFile = "";
          this.imageUrl = "";
        }
      },
a17c68a03   Neeraj Sharma   implement two rou...
365
      getNotifications() {
55f72b7d7   Neeraj Sharma   add new page are ...
366
367
368
369
        this.showLoader = true;
        var token = this.$store.state.token;
        http()
          .get("/getNotificationsList", {
8e8d14254   Shikha Mishra   Cleared data whil...
370
            headers: { Authorization: "Bearer " + token },
55f72b7d7   Neeraj Sharma   add new page are ...
371
          })
8e8d14254   Shikha Mishra   Cleared data whil...
372
          .then((response) => {
68d742034   Neeraj Sharma   implement new des...
373
            this.notifications = response.data.data;
55f72b7d7   Neeraj Sharma   add new page are ...
374
            this.showLoader = false;
55f72b7d7   Neeraj Sharma   add new page are ...
375
          })
8e8d14254   Shikha Mishra   Cleared data whil...
376
          .catch((error) => {
55f72b7d7   Neeraj Sharma   add new page are ...
377
            this.showLoader = false;
a17c68a03   Neeraj Sharma   implement two rou...
378
379
380
381
382
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
55f72b7d7   Neeraj Sharma   add new page are ...
383
384
385
          });
      },
      editItem(item) {
68d742034   Neeraj Sharma   implement new des...
386
        this.editedIndex = this.notifications.indexOf(item);
55f72b7d7   Neeraj Sharma   add new page are ...
387
        this.editedItem = Object.assign({}, item);
68d742034   Neeraj Sharma   implement new des...
388
        this.editNotificationDialog = true;
55f72b7d7   Neeraj Sharma   add new page are ...
389
390
      },
      profile(item) {
68d742034   Neeraj Sharma   implement new des...
391
        this.editedIndex = this.notifications.indexOf(item);
55f72b7d7   Neeraj Sharma   add new page are ...
392
        this.editedItem = Object.assign({}, item);
68d742034   Neeraj Sharma   implement new des...
393
        this.profileNotificationDialog = true;
55f72b7d7   Neeraj Sharma   add new page are ...
394
395
396
397
      },
  
      deleteItem(item) {
        let deleteNotification = {
8e8d14254   Shikha Mishra   Cleared data whil...
398
          notificationId: item._id,
55f72b7d7   Neeraj Sharma   add new page are ...
399
400
401
402
403
        };
        http()
          .delete(
            "/deleteNotification",
            confirm("Are you sure you want to delete this?") && {
8e8d14254   Shikha Mishra   Cleared data whil...
404
              params: deleteNotification,
55f72b7d7   Neeraj Sharma   add new page are ...
405
406
            }
          )
8e8d14254   Shikha Mishra   Cleared data whil...
407
          .then((response) => {
68d742034   Neeraj Sharma   implement new des...
408
409
410
            this.snackbar = true;
            this.text = response.data.message;
            this.color = "green";
a17c68a03   Neeraj Sharma   implement two rou...
411
            this.getNotifications();
55f72b7d7   Neeraj Sharma   add new page are ...
412
          })
8e8d14254   Shikha Mishra   Cleared data whil...
413
          .catch((error) => {
68d742034   Neeraj Sharma   implement new des...
414
415
416
            this.snackbar = true;
            this.text = error.response.data.message;
            this.color = "error";
55f72b7d7   Neeraj Sharma   add new page are ...
417
418
          });
      },
55f72b7d7   Neeraj Sharma   add new page are ...
419
      close() {
68d742034   Neeraj Sharma   implement new des...
420
        this.editNotificationDialog = false;
55f72b7d7   Neeraj Sharma   add new page are ...
421
      },
68d742034   Neeraj Sharma   implement new des...
422
423
      closeNotificationDialog() {
        this.profileNotificationDialog = false;
55f72b7d7   Neeraj Sharma   add new page are ...
424
      },
8e8d14254   Shikha Mishra   Cleared data whil...
425
426
427
428
      closeAddNotificationModel() {
        this.addNotificationDialog = false;
        this.addNotification = [];
      },
55f72b7d7   Neeraj Sharma   add new page are ...
429
430
431
432
      submit() {
        if (this.$refs.form.validate()) {
          let imageData = new FormData();
          imageData.append("upload", this.imageFile);
55f72b7d7   Neeraj Sharma   add new page are ...
433
434
          let create = {
            title: this.addNotification.title,
8e8d14254   Shikha Mishra   Cleared data whil...
435
            description: this.addNotification.description,
55f72b7d7   Neeraj Sharma   add new page are ...
436
          };
5f1d4b444   Neeraj Sharma   fix design and fi...
437
          this.loading = true;
55f72b7d7   Neeraj Sharma   add new page are ...
438
439
          http()
            .post("/createNotification", create)
8e8d14254   Shikha Mishra   Cleared data whil...
440
            .then((response) => {
68d742034   Neeraj Sharma   implement new des...
441
442
443
              this.snackbar = true;
              this.text = response.data.message;
              this.color = "green";
55f72b7d7   Neeraj Sharma   add new page are ...
444
              this.getNotifications();
5d5315b0f   Shikha Mishra   close add-notific...
445
              this.addNotificationDialog = false;
55f72b7d7   Neeraj Sharma   add new page are ...
446
              this.clear();
5f1d4b444   Neeraj Sharma   fix design and fi...
447
              this.loading = false;
55f72b7d7   Neeraj Sharma   add new page are ...
448
            })
8e8d14254   Shikha Mishra   Cleared data whil...
449
            .catch((error) => {
68d742034   Neeraj Sharma   implement new des...
450
451
452
              this.snackbar = true;
              this.text = error.response.data.message;
              this.color = "error";
5f1d4b444   Neeraj Sharma   fix design and fi...
453
              this.loading = false;
55f72b7d7   Neeraj Sharma   add new page are ...
454
455
456
            });
        }
      },
55f72b7d7   Neeraj Sharma   add new page are ...
457
458
459
460
      clear() {
        this.$refs.form.reset();
      },
      save() {
a17c68a03   Neeraj Sharma   implement two rou...
461
462
        let imageData = new FormData();
        imageData.append("upload", this.imageFile);
55f72b7d7   Neeraj Sharma   add new page are ...
463
        let editNotification = {
a17c68a03   Neeraj Sharma   implement two rou...
464
465
          notificationId: this.editedItem._id,
          title: this.editedItem.title,
8e8d14254   Shikha Mishra   Cleared data whil...
466
          description: this.editedItem.description,
55f72b7d7   Neeraj Sharma   add new page are ...
467
        };
68d742034   Neeraj Sharma   implement new des...
468
        this.editLoading = true;
55f72b7d7   Neeraj Sharma   add new page are ...
469
470
        http()
          .put("/updateNotification", editNotification)
8e8d14254   Shikha Mishra   Cleared data whil...
471
          .then((response) => {
68d742034   Neeraj Sharma   implement new des...
472
473
474
            this.snackbar = true;
            this.text = response.data.message;
            this.color = "green";
55f72b7d7   Neeraj Sharma   add new page are ...
475
            this.getNotifications();
68d742034   Neeraj Sharma   implement new des...
476
477
            this.close();
            this.editLoading = false;
55f72b7d7   Neeraj Sharma   add new page are ...
478
          })
8e8d14254   Shikha Mishra   Cleared data whil...
479
          .catch((error) => {
68d742034   Neeraj Sharma   implement new des...
480
481
482
483
            this.editLoading = false;
            this.snackbar = true;
            this.color = "error";
            this.text = error.response.data.message;
55f72b7d7   Neeraj Sharma   add new page are ...
484
          });
68d742034   Neeraj Sharma   implement new des...
485
486
487
488
489
490
491
492
      },
      displaySearch() {
        (this.show = false), (this.showSearch = true);
      },
      closeSearch() {
        this.showSearch = false;
        this.show = true;
        this.search = "";
8e8d14254   Shikha Mishra   Cleared data whil...
493
      },
55f72b7d7   Neeraj Sharma   add new page are ...
494
495
496
    },
    mounted() {
      this.getNotifications();
8e8d14254   Shikha Mishra   Cleared data whil...
497
    },
55f72b7d7   Neeraj Sharma   add new page are ...
498
  };
68d742034   Neeraj Sharma   implement new des...
499
  </script>