project-booster-vue 8.91.0 → 8.91.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -177,6 +177,10 @@ export default {
|
|
|
177
177
|
}),
|
|
178
178
|
},
|
|
179
179
|
|
|
180
|
+
created() {
|
|
181
|
+
this.$store.dispatch('sendEventToBus', { code: 'mediaHubLanded', payload: {} });
|
|
182
|
+
},
|
|
183
|
+
|
|
180
184
|
methods: {
|
|
181
185
|
handleMediaUploaded() {
|
|
182
186
|
this.$store.dispatch('media/refreshMediaList');
|
|
@@ -209,6 +213,12 @@ export default {
|
|
|
209
213
|
this.mediaToDelete = null;
|
|
210
214
|
}, 1000);
|
|
211
215
|
},
|
|
216
|
+
beforeRouteLeave(to, from, next) {
|
|
217
|
+
if (!to.name.startsWith('PbInspiration')) {
|
|
218
|
+
this.$store.dispatch('sendEventToBus', { code: 'mediaHubExited', payload: {} });
|
|
219
|
+
}
|
|
220
|
+
next();
|
|
221
|
+
},
|
|
212
222
|
},
|
|
213
223
|
};
|
|
214
224
|
</script>
|