Skip to content

Commit

Permalink
Merge branch 'next' into bugfix/FOUR-13078
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro authored Feb 5, 2024
2 parents 513ccea + 1acc7c6 commit 90ae22e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/renderer/file-upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ $t('File uploads are unavailable in preview mode.') }}
</b-card>
<uploader
v-else
v-if="!inPreviewMode && showComponent"
:options="options"
:attrs="attrs"
ref="uploader"
Expand Down Expand Up @@ -106,6 +106,10 @@ export default {
this.$root.$on('removed-loop',
(loop, removed) => this.listenRemovedLoop(loop, removed));
window.ProcessMaker.EventBus.$on("modal-shown", () => {
this.clearFiles();
});
this.removeDefaultClasses();
Expand Down Expand Up @@ -297,9 +301,16 @@ export default {
nativeFiles: {},
uploading: false,
invalidFile: false,
showComponent: true,
};
},
methods: {
clearFiles() {
this.showComponent = false;
this.$nextTick(() => {
this.showComponent = true;
});
},
uploaderLoaded() {
return this.$refs['uploader'];
},
Expand Down

0 comments on commit 90ae22e

Please sign in to comment.