[vue] Update source components filter items when manager dialog is closed
:value.sync="dialog"
>
<select-option
+ :id="id"
title="Source component"
:bus="bus"
:fetch-items="fetchItems"
>
<template v-slot:prepend-toolbar-items>
<v-btn
+ class="manage-components-btn"
icon
small
@click="dialog = true"
@@ -60,6 +62,16 @@ export default {
};
},
+ watch: {
+ dialog(value) {
+ if (value) return;
+
+ // If the source component manager dialog is closed we need to update
+ // the filter items to make sure that new items will be shown.
+ this.bus.$emit("update");
+ }
+ },
+
methods: {
updateReportFilter() {
this.setReportFilter({
