From 05f302465e22cbb89fca551686aa52527bd66fb7 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sat, 1 Jun 2024 15:52:25 +0200 Subject: [PATCH] fix --- login.go => Authentification.go | 0 Chat.go | 3 ++- database.go => EdgeDatabase.go | 0 utils.go => MyUtils.go | 0 views/partials/popover-settings.html | 5 +++-- 5 files changed, 5 insertions(+), 3 deletions(-) rename login.go => Authentification.go (100%) rename database.go => EdgeDatabase.go (100%) rename utils.go => MyUtils.go (100%) diff --git a/login.go b/Authentification.go similarity index 100% rename from login.go rename to Authentification.go diff --git a/Chat.go b/Chat.go index 94e4fc2..2277f79 100644 --- a/Chat.go +++ b/Chat.go @@ -812,7 +812,8 @@ func LoadSettingsHandler(c *fiber.Ctx) error { "GooseaiExists": gooseaiExists, "GoogleExists": googleExists, "AnyExists": openaiExists || anthropicExists || mistralExists || groqExists || gooseaiExists || googleExists, - "IsSub": isPremium || isBasic, + "isPremium": isPremium, + "isBasic": isBasic, "StripeSubLink": stripeSubLink, }) if err != nil { diff --git a/database.go b/EdgeDatabase.go similarity index 100% rename from database.go rename to EdgeDatabase.go diff --git a/utils.go b/MyUtils.go similarity index 100% rename from utils.go rename to MyUtils.go diff --git a/views/partials/popover-settings.html b/views/partials/popover-settings.html index 58ba8b7..3d8782b 100644 --- a/views/partials/popover-settings.html +++ b/views/partials/popover-settings.html @@ -93,9 +93,10 @@

- {% if IsSub %} + {% if IsSub or isPremium %} - + Manage subscription