Commit 1dff121f authored by Kushal Pandya's avatar Kushal Pandya

Use `hasFiltersApplied` during app init

parent 998a9691
...@@ -2,6 +2,7 @@ import Vue from 'vue'; ...@@ -2,6 +2,7 @@ import Vue from 'vue';
import Translate from '~/vue_shared/translate'; import Translate from '~/vue_shared/translate';
import { convertPermissionToBoolean } from '~/lib/utils/common_utils';
import { getTimeframeWindow } from '~/lib/utils/datetime_utility'; import { getTimeframeWindow } from '~/lib/utils/datetime_utility';
import { TIMEFRAME_LENGTH } from './constants'; import { TIMEFRAME_LENGTH } from './constants';
...@@ -27,6 +28,7 @@ export default () => { ...@@ -27,6 +28,7 @@ export default () => {
}, },
data() { data() {
const dataset = this.$options.el.dataset; const dataset = this.$options.el.dataset;
const hasFiltersApplied = convertPermissionToBoolean(dataset.hasFiltersApplied);
const filterQueryString = window.location.search.substring(1); const filterQueryString = window.location.search.substring(1);
// Construct Epic API path to include // Construct Epic API path to include
...@@ -49,6 +51,7 @@ export default () => { ...@@ -49,6 +51,7 @@ export default () => {
return { return {
store, store,
service, service,
hasFiltersApplied,
emptyStateIllustrationPath: dataset.emptyStateIllustration, emptyStateIllustrationPath: dataset.emptyStateIllustration,
}; };
}, },
...@@ -57,6 +60,7 @@ export default () => { ...@@ -57,6 +60,7 @@ export default () => {
props: { props: {
store: this.store, store: this.store,
service: this.service, service: this.service,
hasFiltersApplied: this.hasFiltersApplied,
emptyStateIllustrationPath: this.emptyStateIllustrationPath, emptyStateIllustrationPath: this.emptyStateIllustrationPath,
}, },
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment