Skip to content

Commit aedd393

Browse files
committedJul 31, 2023
feat: disable default disk usage preview
1 parent 5bc472c commit aedd393

File tree

4 files changed

+4
-277
lines changed

4 files changed

+4
-277
lines changed
 

‎cmd/config_init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ override the options.`,
3838
Branding: settings.Branding{
3939
Name: mustGetString(flags, "branding.name"),
4040
DisableExternal: mustGetBool(flags, "branding.disableExternal"),
41-
DisableUsedPercentage: mustGetBool(flags, "branding.disableUsedPercentage"),
41+
DisableUsedPercentage: true,
4242
Files: mustGetString(flags, "branding.files"),
4343
},
4444
}

‎cmd/config_set.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ you want to change. Other options will remain unchanged.`,
5959
set.Branding.Color = mustGetString(flags, flag.Name)
6060
case "branding.disableExternal":
6161
set.Branding.DisableExternal = mustGetBool(flags, flag.Name)
62-
// case "branding.disableUsedPercentage":
63-
// set.Branding.DisableUsedPercentage = mustGetBool(flags, flag.Name)
62+
case "branding.disableUsedPercentage":
63+
set.Branding.DisableUsedPercentage = true
6464
case "branding.files":
6565
set.Branding.Files = mustGetString(flags, flag.Name)
6666
}

‎frontend/src/i18n/hu.json

-273
This file was deleted.

‎http/http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewHandler(
6969
api.PathPrefix("/tus").Handler(monkey(tusHeadHandler(), "/api/tus")).Methods("HEAD")
7070
api.PathPrefix("/tus").Handler(monkey(tusPatchHandler(), "/api/tus")).Methods("PATCH")
7171

72-
api.PathPrefix("/usage").Handler(monkey(diskUsage, "/api/usage")).Methods("GET")
72+
// api.PathPrefix("/usage").Handler(monkey(diskUsage, "/api/usage")).Methods("GET")
7373

7474
api.Path("/shares").Handler(monkey(shareListHandler, "/api/shares")).Methods("GET")
7575
api.PathPrefix("/share").Handler(monkey(shareGetsHandler, "/api/share")).Methods("GET")

0 commit comments

Comments
 (0)
Please sign in to comment.