Skip to content

Commit

Permalink
Fixes #1122: Button "New request" added to "My Requests" view to impr…
Browse files Browse the repository at this point in the history
…ove workflow … (#1123)
  • Loading branch information
christian-weiss authored Jan 1, 2024
1 parent fdb7b6c commit e4cc8d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/styles/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ details.footnote {
flex-wrap: nowrap;
justify-content: space-between;
margin-bottom: 15px;
column-gap: 5px;

.dropdown-container {
&:focus > .dropdown,
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/privacy-controls/company-search-page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Search bar on company search page', () => {
cy.contains('Get access').click();

cy.get('.ais-SearchBox-input').type('twitter');
cy.contains('Twitter International Company');
cy.contains('Twitter International Unlimited Company');
});

it('is not active when the privacy control is disabled', () => {
Expand Down
11 changes: 11 additions & 0 deletions src/Components/RequestList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ export const RequestList = (props: RequestListProps) => {
onClick={() => setSelectionMode(!selectionMode)}>
{selectionMode ? <Text id="cancel" /> : <Text id="selection-mode" />}
</button>

{!selectionMode && (
<a
id="new-request"
className="button button-secondary button-small"
href={`${window.BASE_URL}generator`}
role="button">
{t('new-request', 'generator')}
</a>
)}

{!selectionMode && (
<>
{props.importEmailsButton}
Expand Down

0 comments on commit e4cc8d6

Please sign in to comment.