aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-12-18 20:47:12 +1100
committerTerry Truong <terry06890@gmail.com>2022-12-18 20:47:12 +1100
commit5db4ecc36e7409dcb1a91879ed6510bc74f6caa4 (patch)
tree7a0b3301f0b3822214a44826427892199863527d /src/App.vue
parentfac881d61176f04a4062db710df98924a76b0ffb (diff)
Only show close button for multiple timelines
Change close icon from '-' to 'x'
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue
index d3fbd69..f0eb9bb 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -19,7 +19,7 @@
<div class="grow min-h-0 flex" :class="{'flex-col': !vert}"
:style="{backgroundColor: store.color.bg}" ref="contentAreaRef">
<time-line v-for="(state, idx) in timelines" :key="state.id"
- :vert="vert" :initialState="state" :eventTree="eventTree"
+ :vert="vert" :initialState="state" :closeable="timelines.length > 1" :eventTree="eventTree"
class="grow basis-full min-h-0 outline outline-1"
@remove="onTimelineRemove(idx)" @state-chg="onTimelineChg($event, idx)"
@event-req="onEventReq" @event-display="onEventDisplay($event, idx)"/>