diff --git a/satellite/console/consoleweb/config.go b/satellite/console/consoleweb/config.go index f0b1bce49..990e354df 100644 --- a/satellite/console/consoleweb/config.go +++ b/satellite/console/consoleweb/config.go @@ -49,6 +49,7 @@ type FrontendConfig struct { NewUploadModalEnabled bool `json:"newUploadModalEnabled"` GalleryViewEnabled bool `json:"galleryViewEnabled"` NeededTransactionConfirmations int `json:"neededTransactionConfirmations"` + ObjectBrowserPaginationEnabled bool `json:"objectBrowserPaginationEnabled"` } // Satellites is a configuration value that contains a list of satellite names and addresses. diff --git a/satellite/console/consoleweb/server.go b/satellite/console/consoleweb/server.go index 8e09aa9c1..9b026dafc 100644 --- a/satellite/console/consoleweb/server.go +++ b/satellite/console/consoleweb/server.go @@ -107,6 +107,7 @@ type Config struct { GalleryViewEnabled bool `help:"whether to show new gallery view" default:"true"` UseVuetifyProject bool `help:"whether to use vuetify POC project" default:"false"` VuetifyHost string `help:"the subdomain the vuetify POC project should be hosted on" default:""` + ObjectBrowserPaginationEnabled bool `help:"whether to use object browser pagination" default:"false"` OauthCodeExpiry time.Duration `help:"how long oauth authorization codes are issued for" default:"10m"` OauthAccessTokenExpiry time.Duration `help:"how long oauth access tokens are issued for" default:"24h"` @@ -727,6 +728,7 @@ func (server *Server) frontendConfigHandler(w http.ResponseWriter, r *http.Reque NewUploadModalEnabled: server.config.NewUploadModalEnabled, GalleryViewEnabled: server.config.GalleryViewEnabled, NeededTransactionConfirmations: server.neededTokenPaymentConfirmations, + ObjectBrowserPaginationEnabled: server.config.ObjectBrowserPaginationEnabled, } err := json.NewEncoder(w).Encode(&cfg) diff --git a/scripts/testdata/satellite-config.yaml.lock b/scripts/testdata/satellite-config.yaml.lock index d2318cb65..1a3abdf0e 100755 --- a/scripts/testdata/satellite-config.yaml.lock +++ b/scripts/testdata/satellite-config.yaml.lock @@ -319,6 +319,9 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0 # how long oauth refresh tokens are issued for # console.oauth-refresh-token-expiry: 720h0m0s +# whether to use object browser pagination +# console.object-browser-pagination-enabled: false + # enable open registration # console.open-registration-enabled: false diff --git a/web/satellite/src/components/browser/FileBrowser.vue b/web/satellite/src/components/browser/FileBrowser.vue index 9d0d2f75f..aa2869ae2 100644 --- a/web/satellite/src/components/browser/FileBrowser.vue +++ b/web/satellite/src/components/browser/FileBrowser.vue @@ -99,11 +99,22 @@ /> - + @@ -141,7 +152,8 @@ @@ -203,7 +215,7 @@