Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion site/frontend/src/pages/status_new/collector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const ACTIVE_FILTERS: Ref<Record<BenchmarkJobStatus, boolean>> = ref({
Failed: true,
});

const showJobs: Ref<boolean> = ref(false);

function filterJobByStatus(status: string) {
ACTIVE_FILTERS.value[status] = !ACTIVE_FILTERS.value[status];
}
Expand Down Expand Up @@ -76,6 +78,10 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
</span>
);
}

function toggleShowJobs() {
showJobs.value = !showJobs.value;
}
</script>

<template>
Expand Down Expand Up @@ -116,9 +122,10 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
</span>
<span>{{ formatISODate(collector.dateAdded) }}</span>
</div>
<button @click="toggleShowJobs">show jobs</button>
</div>

<div class="table-collector-wrapper">
<div v-if="showJobs" class="table-collector-wrapper">
<div class="table-collector-status-filter-wrapper">
<div class="table-collector-status-filters">
<strong>Filter by job status:</strong>
Expand Down
4 changes: 1 addition & 3 deletions site/frontend/src/pages/status_new/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ loadStatusData(loading);
<style scoped lang="scss">
.status-page-wrapper {
display: flex;
@media screen and (max-width: 1450px) {
flex-direction: column;
}
flex-direction: column;
}

.collector-wrapper {
Expand Down
Loading