Skip to content

Commit

Permalink
QOL Move Refresh Scrapers to Top (#5142)
Browse files Browse the repository at this point in the history
QOL change to move the "Refresh Scrapers" button within the "Scrape with..." dropdown to the top.
  • Loading branch information
Gykes authored Aug 20, 2024
1 parent 7788a6f commit 427c18b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ui/v2.5/src/components/Shared/ScraperMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,23 @@ export const ScraperMenu: React.FC<{
<Dropdown.Toggle variant={variant}>{toggle}</Dropdown.Toggle>

<Dropdown.Menu>
<Dropdown.Item onClick={() => onReloadScrapers()}>
<span className="fa-icon">
<Icon icon={faSyncAlt} />
</span>
<span>
<FormattedMessage id="actions.reload_scrapers" />
</span>
</Dropdown.Item>

{(stashBoxes?.length ?? 0) + scrapers.length > minFilteredScrapers && (
<ClearableInput
placeholder={`${intl.formatMessage({ id: "filter" })}...`}
value={filter}
setValue={setFilter}
/>
)}

{filteredStashboxes.map((s, index) => (
<Dropdown.Item
key={s.endpoint}
Expand All @@ -86,14 +96,6 @@ export const ScraperMenu: React.FC<{
{s.name}
</Dropdown.Item>
))}
<Dropdown.Item onClick={() => onReloadScrapers()}>
<span className="fa-icon">
<Icon icon={faSyncAlt} />
</span>
<span>
<FormattedMessage id="actions.reload_scrapers" />
</span>
</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
);
Expand Down

0 comments on commit 427c18b

Please sign in to comment.