<%= render HeaderCompactComponent.new(title: "Storage") %> <%= render MainCompactComponent.new do %>

The app on <%= link_to @client_id, "https://#{@client_id}" %> is asking for access to these folders:

<% if @root_access_requested %>

<%= render partial: "icons/alert-triangle", locals: { custom_class: "inline-block align-bottom mr-1.5" } %> All files and directories <% if (@scopes & [":r"]).any? %> (read only) <% end %>

<% else %> <% @scopes.each do |scope| %>

<%= render partial: "icons/folder", locals: { custom_class: "inline-block align-bottom mr-1.5" } %> <%= scope_name(scope) %> <% if scope_permissions(scope) == "r" %> (read only) <% end %>

<% end %> <% end %> <%= form_with(url: rs_oauth_path, method: :post, data: { turbo: false }) do |f| %> <%= f.hidden_field :redirect_uri, value: @redirect_uri %> <%= f.hidden_field :scope, value: @scopes.join(" ") %> <%= f.hidden_field :user_id, value: @user.id %> <%= f.hidden_field :client_id, value: @client_id %> <%= f.hidden_field :state, value: @state %>

<%= f.label :expire_at, "Permission expires:", class: "mr-1.5" %> <%= f.select :expire_at, options_for_select(@expire_at_dates) %>

You can revoke access for this app at any time on your storage dashboard.

<%= f.submit "Allow", class: "btn-md btn-blue w-full sm:order-last sm:grow", data: { disable_with: "Saving..." } %> <%= link_to "Deny", @denial_url, class: "btn-md btn-gray text-red-700 w-full sm:grow" %> <% end %>

<% end %>