From 9caaabcaccbffe12e53cb3179bf53339e6896cb6 Mon Sep 17 00:00:00 2001 From: sylenien Date: Tue, 31 May 2022 17:01:00 +0200 Subject: [PATCH] fix(ui): move issues button to the subheader --- .../app/components/Session_/Issues/Issues.js | 27 ++++++++++--------- .../Session_/Issues/issues.module.css | 3 +-- .../app/components/Session_/PlayerBlock.js | 11 +++++++- .../components/Session_/PlayerBlockHeader.js | 2 -- frontend/app/components/Session_/Subheader.js | 4 +++ frontend/app/svg/icons/integrations/jira.svg | 12 ++++----- 6 files changed, 36 insertions(+), 23 deletions(-) diff --git a/frontend/app/components/Session_/Issues/Issues.js b/frontend/app/components/Session_/Issues/Issues.js index 8bbf4232d..a6f6dd077 100644 --- a/frontend/app/components/Session_/Issues/Issues.js +++ b/frontend/app/components/Session_/Issues/Issues.js @@ -35,7 +35,7 @@ class Issues extends React.Component { super(props); this.state = { showModal: false }; } - + closeModal = () => { this.setState({ showModal: false }); } @@ -64,7 +64,7 @@ class Issues extends React.Component { } render() { - const { + const { sessionId, isModalDisplayed, projectsLoading, metaLoading, fetchIssuesLoading, issuesIntegration } = this.props; const { showModal } = this.state; @@ -74,15 +74,18 @@ class Issues extends React.Component {
+ + Create Issue +
+ } + on="click" + position="top right" + content={ - { + {
{!isAssist && ( diff --git a/frontend/app/components/Session_/Subheader.js b/frontend/app/components/Session_/Subheader.js index 175985258..7943290b1 100644 --- a/frontend/app/components/Session_/Subheader.js +++ b/frontend/app/components/Session_/Subheader.js @@ -6,6 +6,7 @@ import SharePopup from '../shared/SharePopup/SharePopup'; import { connectPlayer } from 'Player'; import copy from 'copy-to-clipboard'; import { Tooltip } from 'react-tippy'; +import Issues from './Issues/Issues'; function SubHeader(props) { const [isCopied, setCopied] = React.useState(false); @@ -39,6 +40,9 @@ function SubHeader(props) { )}
+
+ {!isAssist && props.jiraConfig && props.jiraConfig.token && } +
Created with Sketch. - - + + - - + + - + - \ No newline at end of file +