mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
feat: add HIDE_UPDATE_BANNER environment variable (#2051)
* feat: add HIDE_UPDATE_BANNER environment variable Add a new HIDE_UPDATE_BANNER env var that allows platform operators (e.g. Start9) to suppress the built-in version update banner when they provide their own update notification mechanism. When set to true, the "What's New" widget is hidden and the header banner only shows for VSS migration notices. The version comparison against the Alby API is skipped entirely. Closes #2048 * chore: simplify * chore: undo changes --------- Co-authored-by: Joel Klabo <max@klabo.world> Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
This commit is contained in:
parent
801f517478
commit
4353aa4e57
6 changed files with 12 additions and 3 deletions
|
|
@ -1217,6 +1217,7 @@ func (api *api) GetInfo(ctx context.Context) (*InfoResponse, error) {
|
|||
info.OAuthRedirect = !api.cfg.GetEnv().IsDefaultClientId()
|
||||
info.Version = version.Tag
|
||||
info.EnableAdvancedSetup = api.cfg.GetEnv().EnableAdvancedSetup
|
||||
info.HideUpdateBanner = api.cfg.GetEnv().HideUpdateBanner
|
||||
info.LdkVssEnabled = ldkVssEnabled == "true"
|
||||
info.VssSupported = backendType == config.LDKBackendType && api.cfg.GetEnv().LDKVssUrl != ""
|
||||
info.AutoUnlockPasswordEnabled = autoUnlockPassword != ""
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ type InfoResponse struct {
|
|||
Relays []InfoResponseRelay `json:"relays"`
|
||||
NodeAlias string `json:"nodeAlias"`
|
||||
MempoolUrl string `json:"mempoolUrl"`
|
||||
HideUpdateBanner bool `json:"hideUpdateBanner"`
|
||||
}
|
||||
|
||||
type UpdateSettingsRequest struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue