QOL Move Refresh Scrapers to Top (#5142)

QOL change to move the "Refresh Scrapers" button within the "Scrape with..." dropdown to the top.
This commit is contained in:
Gykes 2024-08-20 16:22:59 -07:00 committed by GitHub
parent 7788a6fd07
commit 427c18be7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 8 deletions

View File

@ -54,6 +54,15 @@ 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" })}...`}
@ -61,6 +70,7 @@ export const ScraperMenu: React.FC<{
setValue={setFilter}
/>
)}
{filteredStashboxes.map((s, index) => (
<Dropdown.Item
key={s.endpoint}
@ -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>
);