Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add refresh to storage

Isaiah Hamilton9b08126460f3
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js
index 53056c329cf..5d92b180088 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js
@@ -6,6 +6,7 @@ import {
Input,
IconChevronLeft,
IconChevronRight,
+ IconRefreshCw,
IconColumns,
IconChevronsDown,
IconSearch,
@@ -197,6 +198,10 @@ const FileExplorerHeader = ({
onSelectBreadcrumb(columnIndex)
}
+ function refreshData() {
+ PageState.fetchData(1)
+ }
+
return (
<div
className="
@@ -266,6 +271,16 @@ const FileExplorerHeader = ({
{/* Actions */}
<div className="flex items-center space-x-4">
<div className="flex items-center space-x-1">
+ <Button
+ className="mr-2"
+ size="tiny"
+ icon={<IconRefreshCw />}
+ type="text"
+ loading={PageState.usersLoading}
+ onClick={refreshData}
+ >
+ Reload
+ </Button>
<Dropdown
overlay={[
<Dropdown.RadioGroup key="viewOptions" value={view} onChange={onChangeView}>