Skip to content

Commit

Permalink
Improved: changed the function name to downloadFile in DownloadLogsFi…
Browse files Browse the repository at this point in the history
…lePopover and parameter type(hotwax#680)
  • Loading branch information
R-Sourabh committed Nov 13, 2024
1 parent 0e6ba95 commit 8047986
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/DownloadLogsFilePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<ion-content>
<ion-list>
<ion-list-header>{{ dataManagerLog.logId }}</ion-list-header>
<ion-item button @click="downloadLogFile('logFile')">
<ion-item button @click="downloadFile('logFile')">
{{ translate('Log file') }}
</ion-item>
<ion-item button @click="downloadLogFile('uploadedFile')">
<ion-item button @click="downloadFile('uploadedFile')">
{{ translate('Uploaded file') }}
</ion-item>
<ion-item button :disabled="!dataManagerLog?.errorRecordContentId" lines="none" @click="downloadLogFile('failedRecords')">
<ion-item button :disabled="!dataManagerLog?.errorRecordContentId" lines="none" @click="downloadFile('failedRecords')">
{{ translate('Failed records') }}
</ion-item>
</ion-list>
Expand Down Expand Up @@ -39,7 +39,7 @@ export default defineComponent({
},
props: ["dataManagerLog"],
methods: {
async downloadLogFile(type: any) {
async downloadFile(type: string) {
let dataResource = {} as any;
if (type === 'logFile') {
Expand All @@ -53,7 +53,7 @@ export default defineComponent({
dataResource.name = this.dataManagerLog.errorRecordContentName
}
if (dataResource) {
if (dataResource.dataResourceId) {
try {
const response = await JobService.fetchFileData({
dataResourceId: dataResource.dataResourceId
Expand Down

0 comments on commit 8047986

Please sign in to comment.