From 8568e495781fb8d788277ee126984a701cb44cdb Mon Sep 17 00:00:00 2001 From: Wilfred Asomani Date: Thu, 30 Nov 2023 15:25:57 +0000 Subject: [PATCH] satellite/{web,console}: remove upload modal flag This change removes the config flag for the new upload modal. Issue: #6515 Change-Id: I69612c6730f933d6320cb3c05995900eac98ac91 --- satellite/console/consoleweb/config.go | 1 - satellite/console/consoleweb/server.go | 2 - scripts/testdata/satellite-config.yaml.lock | 3 - .../src/components/browser/FileBrowser.vue | 60 --------------- .../src/store/modules/objectBrowserStore.ts | 74 ++++++++----------- web/satellite/src/types/config.gen.ts | 3 +- .../src/views/dashboard/DashboardArea.vue | 2 +- 7 files changed, 32 insertions(+), 113 deletions(-) diff --git a/satellite/console/consoleweb/config.go b/satellite/console/consoleweb/config.go index dbffb67bba93..457f61b2c468 100644 --- a/satellite/console/consoleweb/config.go +++ b/satellite/console/consoleweb/config.go @@ -45,7 +45,6 @@ type FrontendConfig struct { PasswordMaximumLength int `json:"passwordMaximumLength"` ABTestingEnabled bool `json:"abTestingEnabled"` PricingPackagesEnabled bool `json:"pricingPackagesEnabled"` - NewUploadModalEnabled bool `json:"newUploadModalEnabled"` GalleryViewEnabled bool `json:"galleryViewEnabled"` NeededTransactionConfirmations int `json:"neededTransactionConfirmations"` ObjectBrowserPaginationEnabled bool `json:"objectBrowserPaginationEnabled"` diff --git a/satellite/console/consoleweb/server.go b/satellite/console/consoleweb/server.go index 7fe9ebc52f48..74fc1690b61a 100644 --- a/satellite/console/consoleweb/server.go +++ b/satellite/console/consoleweb/server.go @@ -105,7 +105,6 @@ type Config struct { HomepageURL string `help:"url link to storj.io homepage" default:"https://www.storj.io"` NativeTokenPaymentsEnabled bool `help:"indicates if storj native token payments system is enabled" default:"false"` PricingPackagesEnabled bool `help:"whether to allow purchasing pricing packages" default:"false" devDefault:"true"` - NewUploadModalEnabled bool `help:"whether to show new upload modal" default:"false"` 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:""` @@ -749,7 +748,6 @@ func (server *Server) frontendConfigHandler(w http.ResponseWriter, r *http.Reque PasswordMaximumLength: console.PasswordMaximumLength, ABTestingEnabled: server.config.ABTesting.Enabled, PricingPackagesEnabled: server.config.PricingPackagesEnabled, - NewUploadModalEnabled: server.config.NewUploadModalEnabled, GalleryViewEnabled: server.config.GalleryViewEnabled, NeededTransactionConfirmations: server.neededTokenPaymentConfirmations, ObjectBrowserPaginationEnabled: server.config.ObjectBrowserPaginationEnabled, diff --git a/scripts/testdata/satellite-config.yaml.lock b/scripts/testdata/satellite-config.yaml.lock index dafb2e5ab76d..9ae0db8221a0 100755 --- a/scripts/testdata/satellite-config.yaml.lock +++ b/scripts/testdata/satellite-config.yaml.lock @@ -334,9 +334,6 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0 # indicates if storj native token payments system is enabled # console.native-token-payments-enabled: false -# whether to show new upload modal -# console.new-upload-modal-enabled: false - # how long oauth access tokens are issued for # console.oauth-access-token-expiry: 24h0m0s diff --git a/web/satellite/src/components/browser/FileBrowser.vue b/web/satellite/src/components/browser/FileBrowser.vue index 0e55fb2503b6..5793405b4838 100644 --- a/web/satellite/src/components/browser/FileBrowser.vue +++ b/web/satellite/src/components/browser/FileBrowser.vue @@ -120,59 +120,6 @@