Skip to content

Commit

Permalink
Fix modular information display in build feed
Browse files Browse the repository at this point in the history
  • Loading branch information
javihernandez committed Dec 3, 2024
1 parent 1e11c63 commit 164fb2e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/BuildFeedItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
<q-card square class="shadow-1">
<q-card-section class="no-padding row">
<div style="overflow: auto" class="col-10">
<div
class="q-pt-sm q-pl-md"
v-if="rpm_module && Object.keys(rpm_module).length !== 0"
>
<div class="q-pt-sm q-pl-md" v-if="rpm_module">
<span>
<b>Built modules:&nbsp;</b>
</span>
Expand Down Expand Up @@ -148,14 +145,13 @@
return new Date(this.build.created_at).toLocaleString()
},
rpm_module() {
let rpm_module = []
this.build.tasks.forEach((task) => {
for (const task of this.build.tasks) {
if (task.arch === 'src') continue
if (task.rpm_modules) {
rpm_module = task.rpm_modules[0]
return
return task.rpm_modules[0]
}
})
return rpm_module
}
return false
},
},
methods: {
Expand Down

0 comments on commit 164fb2e

Please sign in to comment.