Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions Composer/packages/client/src/pages/botProject/PublishTargets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const publishTargetsContainer = css`
flex-direction: column;
`;

const belowTargetsContainer = css`
padding: 0 20px 20px 20px;
`;

const publishTargetsHeader = css`
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -103,6 +107,22 @@ export const PublishTargets: React.FC<PublishTargetsProps> = (props) => {
}
};

const addNewButton = (
Comment thread
beyackle marked this conversation as resolved.
<ActionButton
data-testid={'addNewPublishProfile'}
styles={actionButton}
onClick={() => {
if (isShowAuthDialog(true)) {
Comment thread
beyackle marked this conversation as resolved.
Outdated
setShowAuthDialog(true);
} else {
setDialogHidden(false);
}
}}
>
{formatMessage('Add new')}
</ActionButton>
);

return (
<Fragment>
<div ref={publishTargetsRef} css={publishTargetsContainer} id="addNewPublishProfile">
Expand Down Expand Up @@ -148,20 +168,8 @@ export const PublishTargets: React.FC<PublishTargetsProps> = (props) => {
</div>
);
})}
<ActionButton
data-testid={'addNewPublishProfile'}
styles={actionButton}
onClick={() => {
if (isShowAuthDialog(true)) {
setShowAuthDialog(true);
} else {
setDialogHidden(false);
}
}}
>
{formatMessage('Add new')}
</ActionButton>
</div>
<div css={belowTargetsContainer}>{addNewButton}</div>
{showAuthDialog && (
<AuthDialog
needGraph
Expand Down