|
300 | 300 | showViewCountWarning: false,
|
301 | 301 | tableDynamicCols: dynamicCols,
|
302 | 302 | isGraphLoading: true,
|
303 |
| - isTableLoading: false, |
| 303 | + isTableLoading: true, |
304 | 304 | showActionMapColumn: showActionMapColumn, //for action map
|
305 | 305 | domains: [], //for action map
|
306 | 306 | persistentSettings: [],
|
|
320 | 320 | this.$store.dispatch('countlyViews/onSetSelectedViews', self.persistentSettings);
|
321 | 321 | this.$store.dispatch('countlyViews/fetchData').then(function() {
|
322 | 322 | self.calculateGraphSeries();
|
323 |
| - self.isGraphLoading = false; |
324 | 323 | self.showActionsMapColumn(); //for action map
|
325 | 324 | self.setUpDomains(); //for action map
|
326 | 325 | });
|
|
342 | 341 | }
|
343 | 342 | this.$store.dispatch('countlyViews/fetchData').then(function() {
|
344 | 343 | self.calculateGraphSeries();
|
345 |
| - self.isGraphLoading = false; |
346 | 344 | self.showActionsMapColumn();//for action map
|
347 | 345 | self.setUpDomains();//for action map
|
348 | 346 | });
|
|
426 | 424 | self.isGraphLoading = true;
|
427 | 425 | self.$store.dispatch('countlyViews/fetchData').then(function() {
|
428 | 426 | self.calculateGraphSeries();
|
429 |
| - self.isGraphLoading = false; |
430 | 427 | });
|
431 | 428 | });
|
432 | 429 |
|
433 |
| - this.refresh(); |
| 430 | + this.refresh(true); |
434 | 431 | },
|
435 | 432 | handleSelectionChange: function(selectedRows) {
|
436 | 433 | var self = this;
|
|
467 | 464 | self.isGraphLoading = true;
|
468 | 465 | self.$store.dispatch('countlyViews/fetchData').then(function() {
|
469 | 466 | self.calculateGraphSeries();
|
470 |
| - self.isGraphLoading = false; |
471 | 467 | });
|
472 | 468 | });
|
473 | 469 | return true;
|
|
486 | 482 | }
|
487 | 483 | this.$store.dispatch('countlyViews/fetchData').then(function() {
|
488 | 484 | self.calculateGraphSeries();
|
489 |
| - self.isGraphLoading = false; |
| 485 | + }); |
| 486 | + this.$store.dispatch("countlyViews/fetchViewsMainTable", {"segmentKey": this.$store.state.countlyViews.selectedSegment, "segmentValue": this.$store.state.countlyViews.selectedSegmentValue}).then(function() { |
490 | 487 | self.isTableLoading = false;
|
491 | 488 | });
|
492 |
| - this.$store.dispatch("countlyViews/fetchViewsMainTable", {"segmentKey": this.$store.state.countlyViews.selectedSegment, "segmentValue": this.$store.state.countlyViews.selectedSegmentValue}); |
493 | 489 | },
|
494 | 490 | calculateTotalCards: function() {
|
495 | 491 | var totals = this.$store.state.countlyViews.totals || {};
|
|
568 | 564 | }
|
569 | 565 | };
|
570 | 566 | }
|
| 567 | + self.isGraphLoading = false; |
571 | 568 | });
|
572 | 569 | },
|
573 | 570 | getExportQuery: function() {
|
|
617 | 614 | },
|
618 | 615 | dateChanged: function() {
|
619 | 616 | this.isSpecialPeriod = countlyCommon.periodObj.isSpecialPeriod;
|
| 617 | + this.refresh(true); |
620 | 618 | },
|
621 | 619 | openDrillViewDrawer: function() {
|
622 | 620 | let self = this;
|
|
0 commit comments