Skip to content

Commit

Permalink
Merge pull request #268 from spree/feature/link_documentation_for_oau…
Browse files Browse the repository at this point in the history
…th_applications

Link documentation for oauth applications
  • Loading branch information
rafalcymerys committed Aug 31, 2023
2 parents eddc8a9 + 1d994f7 commit f69a691
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/spree/admin/oauth_applications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<%= button_link_to Spree.t('admin.oauth_applications.new'), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_role_link' %>
<% end if can? :create, Spree::OauthApplication %>

<div class="card bg-light">
<div class="card-body">
<%=Spree.t('admin.oauth_applications.documentation_message')%>
<%= link_to(Spree.t('admin.oauth_applications.documentation_cta'), 'https://dev-docs.spreecommerce.org/api/platform-api/authenticating-requests')%>
</div>
</div>

<% if @oauth_applications.any? %>
<div class="table-responsive rounded border mt-4">
<table class="table">
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ en:
new: New oAuth application
uid: UID
scopes: Scopes
documentation_message: 'To learn how to authenticate requests to the Platform API, '
documentation_cta: see the documentation
reports:
for: For %{store_name}
return_authorization:
Expand Down

0 comments on commit f69a691

Please sign in to comment.