mirror of https://github.com/stashapp/stash.git
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:
parent
7788a6fd07
commit
427c18be7d
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue