From a443caba710cb49540366eeb8f711c5d959dd1ad Mon Sep 17 00:00:00 2001 From: DispatchCommit Date: Fri, 26 Feb 2021 08:12:32 -0800 Subject: [PATCH] Add Go Live to header dropdown --- static/app-strings.json | 1 + ui/component/header/view.jsx | 4 ++++ ui/constants/pages.js | 1 + 3 files changed, 6 insertions(+) diff --git a/static/app-strings.json b/static/app-strings.json index c7b2445fc..d076943ff 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1185,6 +1185,7 @@ "Download the app to track files you've viewed and downloaded.": "Download the app to track files you've viewed and downloaded.", "Create a New Channel": "Create a New Channel", "Create a new channel": "Create a new channel", + "Go Live": "Go Live", "Thumbnail source": "Thumbnail source", "Cover source": "Cover source", "Your changes will be live in a few minutes": "Your changes will be live in a few minutes", diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index 79e39af55..00bb5b348 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -374,6 +374,10 @@ function HeaderMenuButtons(props: HeaderMenuButtonProps) { {__('New Channel')} + history.push(`/$/${PAGES.GO_LIVE}`)}> + + {__('Go Live')} + )} diff --git a/ui/constants/pages.js b/ui/constants/pages.js index 4d688a7f5..d79eebf4c 100644 --- a/ui/constants/pages.js +++ b/ui/constants/pages.js @@ -48,3 +48,4 @@ exports.BUY = 'buy'; exports.CHANNEL_NEW = 'channel/new'; exports.NOTIFICATIONS = 'notifications'; exports.YOUTUBE_SYNC = 'youtube'; +exports.GO_LIVE = 'livestream';