fix
This commit is contained in:
parent
e6899832f7
commit
05f302465e
3
Chat.go
3
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 {
|
||||
|
@ -93,9 +93,10 @@
|
||||
</form>
|
||||
<p id="api-keys-status"></p>
|
||||
</div>
|
||||
{% if IsSub %}
|
||||
{% if IsSub or isPremium %}
|
||||
<a class="button is-small mt-1" href="{{ StripeSubLink }}" target="_blank">
|
||||
<span class="icon is-small" style="color: #b00202">
|
||||
<span class="icon is-small" {% if isPremium %}style="color: #b00202" {%else%}style="color: #126d0f"
|
||||
{% endif %}>
|
||||
<i class="fa-solid fa-heart"></i>
|
||||
</span>
|
||||
<span>Manage subscription</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user