Allow collapsing jobs

This commit is contained in:
Adam Goldsmith 2019-12-30 20:31:05 -05:00
parent c87322a36f
commit 8cac0cb81d
2 changed files with 16 additions and 12 deletions

View File

@ -15,6 +15,7 @@
},
"devDependencies": {
"@vue/component-compiler-utils": "^3.0.2",
"sass": "^1.24.0",
"typescript": "^3.7.3",
"vue-template-compiler": "^2.6.10"
}

View File

@ -1,12 +1,12 @@
<template>
<div class="job" v-show="!hidden">
<h3>
<span v-if="startEvent">
<details class="job" v-show="!hidden">
<summary>
<span v-if="startEvent" class="job-name">
{{ startEvent.data.fun }}
{{ startEvent.data.arg }}
</span>
<span class="header-jid"> {{ jid }}</span>
</h3>
<span class="jid"> {{ jid }}</span>
</summary>
<div v-for="(events, minion) in minionEvents" :key="minion">
<details class="minion">
<summary>
@ -33,7 +33,7 @@
</details>
</details>
</div>
</div>
</details>
</template>
<script lang="ts">
@ -115,14 +115,17 @@ export default class Job extends Vue {
}
</script>
<style>
.minion .event {
margin-left: 2ex;
<style lang="scss">
.job-name {
font-size: larger;
font-weight: bold;
}
.jid {
font-size: x-small;
}
.header-jid {
font-size: x-small;
font-weight: normal;
.minion .event {
margin-left: 2ex;
}
pre {