From 5db4ecc36e7409dcb1a91879ed6510bc74f6caa4 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 18 Dec 2022 20:47:12 +1100
Subject: Only show close button for multiple timelines

Change close icon from '-' to 'x'
---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

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)"/>
-- 
cgit v1.2.3

