Skip to content

Commit e1182e3

Browse files
committed
Lint fix
1 parent 2f82cc9 commit e1182e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/components/analysis/AccessButtons.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const downloadInProgress = useState<boolean>(`${statePrefix}.downloadInProgress`
4343
const doDownload = async () => {
4444
downloadInProgress.value = true
4545
// Just download the audit_file.csv for audits
46-
const artifactsToDownload = props.analysis.analysisType === AnalysisType.ANALYSIS_TYPE_AUDIT ? props.analysis.artifacts.filter((a) => a.blob.fileName === 'audit_file.csv') : props.analysis.artifacts;
46+
const artifactsToDownload = props.analysis.analysisType === AnalysisType.ANALYSIS_TYPE_AUDIT ? props.analysis.artifacts.filter((a) => a.blob.fileName === 'audit_file.csv') : props.analysis.artifacts
4747
const response: AccessBlobContentResp = await pactaClient.accessBlobContent({
4848
items: artifactsToDownload.map((asset): AccessBlobContentReqItem => ({
4949
blobId: asset.blob.id,
@@ -53,9 +53,9 @@ const doDownload = async () => {
5353
let content: Blob | null = null
5454
let fileName: string | null = null
5555
if (response.items.length === 1) {
56-
const resp = await fetch(response.items[0].downloadUrl)
57-
content = await resp.blob()
58-
fileName = artifactsToDownload[0].blob.fileName
56+
const resp = await fetch(response.items[0].downloadUrl)
57+
content = await resp.blob()
58+
fileName = artifactsToDownload[0].blob.fileName
5959
} else {
6060
const zip = new JSZip()
6161
await Promise.all(response.items.map(
@@ -101,8 +101,8 @@ const openReport = () => navigateTo(`${apiServerURL}/report/${props.analysis.id}
101101
@click="openReport"
102102
/>
103103
<PVButton
104-
v-tooltip="canAccess ? tt('Download') : ''"
105104
v-if="isCompleted"
105+
v-tooltip="canAccess ? tt('Download') : ''"
106106
:disabled="downloadInProgress || !canAccess"
107107
:loading="downloadInProgress"
108108
:icon="downloadInProgress ? 'pi pi-spinner pi-spin' : 'pi pi-download'"

0 commit comments

Comments
 (0)