mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 05:39:57 -05:00
Expanding FileBrowser button widths when page is wide enough.
This commit is contained in:
parent
7005cd0681
commit
2acdc2e16d
4 changed files with 51 additions and 7 deletions
|
|
@ -1132,10 +1132,12 @@ const useRefresh = () => {
|
|||
}
|
||||
}
|
||||
|
||||
export function FilesRefreshButton({paths}) {
|
||||
export function FilesRefreshButton({paths, showLabel}) {
|
||||
const {globalRefreshing, loading, wrolModeEnabled, refreshFiles} = useRefresh();
|
||||
|
||||
return <Button icon='refresh'
|
||||
content={showLabel ? 'Refresh' : undefined}
|
||||
labelPosition={showLabel ? 'left' : undefined}
|
||||
loading={loading || globalRefreshing}
|
||||
onClick={() => refreshFiles(paths)}
|
||||
disabled={wrolModeEnabled || globalRefreshing}/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue