Commit 61fdbb2a authored by Jiaan Louw's avatar Jiaan Louw

Add method to load collapsed data on extensions

parent e4006d3d
......@@ -104,16 +104,7 @@ export default {
},
},
mounted() {
this.fetchCollapsedData(this.$props)
.then((data) => {
this.collapsedData = data;
this.loadingState = null;
})
.catch((e) => {
this.loadingState = LOADING_STATES.collapsedError;
Sentry.captureException(e);
});
this.loadCollapsedData();
},
methods: {
triggerRedisTracking: once(function triggerRedisTracking() {
......@@ -126,6 +117,20 @@ export default {
this.triggerRedisTracking();
},
loadCollapsedData() {
this.loadingState = LOADING_STATES.collapsedLoading;
this.fetchCollapsedData(this.$props)
.then((data) => {
this.collapsedData = data;
this.loadingState = null;
})
.catch((e) => {
this.loadingState = LOADING_STATES.collapsedError;
Sentry.captureException(e);
});
},
loadAllData() {
if (this.hasFullData) return;
......
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