From e3eda877192e9049113171c987f69f88345bf2df Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 12 Aug 2021 23:46:24 -0700 Subject: [PATCH] Auto-expand utilities menu when upgrade is available. Closes https://github.com/owncast/owncast/issues/1299 --- web/components/main-layout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/main-layout.tsx b/web/components/main-layout.tsx index 8ec0f5a93..b991b3691 100644 --- a/web/components/main-layout.tsx +++ b/web/components/main-layout.tsx @@ -78,6 +78,7 @@ export default function MainLayout(props) { const upgradeVersionString = `${upgradeVersion}` || ''; const upgradeMessage = `Upgrade to v${upgradeVersionString}`; const chatMenuItemStyle = chatDisabled ? 'none' : 'block'; + const openMenuItems = upgradeVersion ? ['utilities-menu'] : []; const clearAlertMessage = () => { alertMessage.setMessage(null); @@ -127,7 +128,7 @@ export default function MainLayout(props) {