diff --git a/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue b/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue index 3cfde9c0..70f3280f 100644 --- a/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue +++ b/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue @@ -11,7 +11,7 @@
Open in new window
Download
- + @@ -31,7 +31,8 @@ return { isLoading: false, loaded: false, - src: '' + src: '', + isClicked: false } }, computed: { @@ -41,6 +42,7 @@ }, methods:{ loadFile(){ + this.isClicked = true; if(!this.loaded) { this.isLoading = true; let filePath = this.type === 'pdf' ? this.file.file.file_info.original.file : this.file.file.file_info[0].original.file;