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,
|
"GooseaiExists": gooseaiExists,
|
||||||
"GoogleExists": googleExists,
|
"GoogleExists": googleExists,
|
||||||
"AnyExists": openaiExists || anthropicExists || mistralExists || groqExists || gooseaiExists || googleExists,
|
"AnyExists": openaiExists || anthropicExists || mistralExists || groqExists || gooseaiExists || googleExists,
|
||||||
"IsSub": isPremium || isBasic,
|
"isPremium": isPremium,
|
||||||
|
"isBasic": isBasic,
|
||||||
"StripeSubLink": stripeSubLink,
|
"StripeSubLink": stripeSubLink,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -93,9 +93,10 @@
|
|||||||
</form>
|
</form>
|
||||||
<p id="api-keys-status"></p>
|
<p id="api-keys-status"></p>
|
||||||
</div>
|
</div>
|
||||||
{% if IsSub %}
|
{% if IsSub or isPremium %}
|
||||||
<a class="button is-small mt-1" href="{{ StripeSubLink }}" target="_blank">
|
<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>
|
<i class="fa-solid fa-heart"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>Manage subscription</span>
|
<span>Manage subscription</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user