Skip to content

Commit 813384d

Browse files
committed
feat - show/hide jobs with a button
1 parent f111973 commit 813384d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

site/frontend/src/pages/status_new/collector.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const ACTIVE_FILTERS: Ref<Record<BenchmarkJobStatus, boolean>> = ref({
2121
Failed: true,
2222
});
2323
24+
const showJobs: Ref<boolean> = ref(false);
25+
2426
function filterJobByStatus(status: string) {
2527
ACTIVE_FILTERS.value[status] = !ACTIVE_FILTERS.value[status];
2628
}
@@ -76,6 +78,10 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
7678
</span>
7779
);
7880
}
81+
82+
function toggleShowJobs() {
83+
showJobs.value = !showJobs.value;
84+
}
7985
</script>
8086

8187
<template>
@@ -116,9 +122,10 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
116122
</span>
117123
<span>{{ formatISODate(collector.dateAdded) }}</span>
118124
</div>
125+
<button @click="toggleShowJobs">show jobs</button>
119126
</div>
120127

121-
<div class="table-collector-wrapper">
128+
<div v-if="showJobs" class="table-collector-wrapper">
122129
<div class="table-collector-status-filter-wrapper">
123130
<div class="table-collector-status-filters">
124131
<strong>Filter by job status:</strong>

site/frontend/src/pages/status_new/page.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ loadStatusData(loading);
211211
<style scoped lang="scss">
212212
.status-page-wrapper {
213213
display: flex;
214-
@media screen and (max-width: 1450px) {
215-
flex-direction: column;
216-
}
214+
flex-direction: column;
217215
}
218216
219217
.collector-wrapper {

0 commit comments

Comments
 (0)