Skip to content

Commit a0df5ae

Browse files
authored
Merge pull request #2286 from Jamesbarford/feat/layout-of-status-page
feat - show/hide jobs with a button
2 parents 4c8e395 + 813384d commit a0df5ae

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
}
@@ -74,6 +76,10 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
7476
</span>
7577
);
7678
}
79+
80+
function toggleShowJobs() {
81+
showJobs.value = !showJobs.value;
82+
}
7783
</script>
7884

7985
<template>
@@ -114,9 +120,10 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
114120
</span>
115121
<span>{{ formatISODate(collector.dateAdded) }}</span>
116122
</div>
123+
<button @click="toggleShowJobs">show jobs</button>
117124
</div>
118125

119-
<div class="table-collector-wrapper">
126+
<div v-if="showJobs" class="table-collector-wrapper">
120127
<div class="table-collector-status-filter-wrapper">
121128
<div class="table-collector-status-filters">
122129
<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
@@ -235,9 +235,7 @@ loadStatusData(loading);
235235
<style scoped lang="scss">
236236
.status-page-wrapper {
237237
display: flex;
238-
@media screen and (max-width: 1450px) {
239-
flex-direction: column;
240-
}
238+
flex-direction: column;
241239
}
242240
243241
.collector-wrapper {

0 commit comments

Comments
 (0)