Skip to content

Commit

Permalink
When you have a permanent key don't show the api key trial box at all
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Nov 25, 2024
1 parent 7eb65bb commit 04acef6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/api_keys/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
</p>
<% end %>

<%# Don't show the ongoing access box if they have an active license that doesn't expire %>
<%# Don't show the ongoing access box and trial key box if they have an active license that doesn't expire %>
<% unless @api_keys.find(&:active?) && @api_keys.find(&:active?).expires_at.nil? %>
<%= render "ongoing_access_box" %>
<%= render "create_key_box", disabled: !@api_keys.empty? %>
<% end %>

<%= render "create_key_box", disabled: !@api_keys.empty? %>

0 comments on commit 04acef6

Please sign in to comment.