Commit c48faea5 authored by Adam Sasin's avatar Adam Sasin
Browse files

Use local state for progress report updates

parent 2b871a5c
......@@ -9,6 +9,9 @@
:zoom="16"
style="height: 600px; margin-bottom: 10px;"
/>
<ProgressDialog
:progress="progressReport"
/>
</v-row>
<v-row
v-if="!exampleModule.isConnected()"
......@@ -39,16 +42,24 @@
<script lang='ts'>
import { Component, Vue } from 'vue-property-decorator';
import Demap from '@digital-earth/frontend-framework/lib/map/Demap.vue';
import ProgressDialog from '@digital-earth/frontend-framework/lib/map/ProgressDialog.vue';
import ExampleModuleMessaging from '@digital-earth/frontend-framework/lib/messaging/ExampleModuleMessaging';
import { PulsarProgressReport } from '@digital-earth/frontend-framework/lib/messaging/PulsarMessages';
@Component({
components: { Demap }
components: { Demap, ProgressDialog },
props: {
progressReport: PulsarProgressReport
}
})
export default class Workflow extends Vue {
private exampleModule: ExampleModuleMessaging = new ExampleModuleMessaging();
private progressReport: PulsarProgressReport;
protected sendRequest(): void {
this.exampleModule.sendRequest();
this.exampleModule.sendRequest((progressReport: PulsarProgressReport) => {
this.progressReport = progressReport;
});
}
}
</script>
\ No newline at end of file
</script>
Supports Markdown
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