Skip to content

Commit

Permalink
Merge pull request #559 from AlmaLinux/fix_srv_mock_logs
Browse files Browse the repository at this point in the history
Fix srpm mock logs in UI
  • Loading branch information
anfimovdm authored Nov 21, 2024
2 parents 1f8114a + 8957186 commit 1e11c63
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions src/pages/BuildLogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@
@download="onDownload(artifact)"
/>

<template v-if="!hasSrcArch || arch === 'src'">
<q-item-section v-if="mockSrpmLogs.length">
mock src-RPM logs:
</q-item-section>
<build-log-link
v-for="artifact in mockSrpmLogs"
:key="artifact.name"
:artifact="artifact"
:selected="artifact.name === selectedLog"
@view="onView(artifact)"
@download="onDownload(artifact)"
/>
</template>
<q-item-section v-if="mockSrpmLogs.length">
mock src-RPM logs:
</q-item-section>
<build-log-link
v-for="artifact in mockSrpmLogs"
:key="artifact.name"
:artifact="artifact"
:selected="artifact.name === selectedLog"
@view="onView(artifact)"
@download="onDownload(artifact)"
/>

<q-item-section v-if="buildArtifacts.length">
Build artifacts:
Expand Down Expand Up @@ -89,7 +87,6 @@
build: null,
logText: '',
selectedLog: null,
hasSrcArch: false,
arch: this.$route.query.arch,
}
},
Expand Down Expand Up @@ -146,8 +143,6 @@
Loading.show()
this.$api.get(`/builds/${this.buildId}/`).then((response) => {
this.build = response.data
let srcTask = this.build.tasks.find((task) => task.arch === 'src')
this.hasSrcArch = !!srcTask
if (this.task.error) {
this.task.artifacts.push({
type: 'build_log',
Expand Down

0 comments on commit 1e11c63

Please sign in to comment.