-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunView.vue
More file actions
62 lines (52 loc) · 1.55 KB
/
RunView.vue
File metadata and controls
62 lines (52 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
<div class="g-container">
<div class="g-navi">
<VBreadcrumbs :items="breadcrumb"> </VBreadcrumbs>
<!-- <span class="pr-6">
<VBtn icon variant="plain" :to="toPrev" v-if="toPrev">
<VIcon> mdi-arrow-left-bold </VIcon>
</VBtn>
<VBtn icon variant="plain" :to="toNext" v-if="toNext">
<VIcon> mdi-arrow-right-bold </VIcon>
</VBtn>
</span> -->
</div>
<VBtn icon variant="plain" :to="{ name: 'runs' }">
<VIcon>mdi-arrow-left</VIcon>
</VBtn>
<RunCard v-if="run" class="g-card" :run="run"></RunCard>
</div>
</template>
<script setup lang="ts">
import { computed } from "vue";
import { useRoute } from "vue-router";
import { useRdbRunQuery } from "@/graphql/codegen/generated";
import RunCard from "./RunCard.vue";
const route = useRoute();
const runNo = Number(route.params.runNo);
const breadcrumb = computed(() => [
{ title: "Runs", to: { name: "runs" }, exact: true },
{ title: `Run ${runNo}`, to: { name: "run", params: { runNo } } },
]);
const queryResponse = useRdbRunQuery({ variables: { runNo } });
const run = computed(() => queryResponse.data.value?.rdb.run);
</script>
<style scoped>
.g-container {
display: grid;
padding: 12px;
justify-content: center;
grid-template-columns: minmax(min-content, 960px);
grid-template-rows: min-content min-content min-content;
grid-template-areas: "navi" "button" "card";
}
.g-navi {
grid-area: navi;
display: flex;
justify-content: space-between;
align-items: center;
}
.g-card {
grid-area: card;
}
</style>