Sha256: 4d3f11cc9791eda58d823bfa6944de5eb67b2e553f1129c009245b3401291b6b

Contents?: true

Size: 1.55 KB

Versions: 24

Compression:

Stored size: 1.55 KB

Contents

<div class="relative flex flex-col w-full sm:w-auto z-40 js-actions-dropdown"
  data-controller="toggle-panel actions-picker"
  data-actions-picker-enabled-class="text-black hover:bg-blue-500 hover:text-white"
  data-actions-picker-disabled-class="cursor-wait text-gray-500"
>
  <%= a_button style: :outline,
    type: :button,
    color: :primary,
    class: "focus:outline-none",
    icon: 'arrow-circle-right',
    icon_class: 'transform rotate-90',
    'data-action': "click->toggle-panel#togglePanel",
    'data-actions-dropdown-button': @resource.model_key do %>
    <%= t 'avo.actions' %>
  <% end %>
  <div
    class="absolute flex inset-auto xl:right-0 top-full bg-white w-full sm:w-auto sm:min-w-[300px] mt-2 z-20 shadow-modal rounded overflow-hidden hidden"
    data-toggle-panel-target="panel"
  >
    <div class="w-full space divide-y">
      <% @actions.each_with_index do |action, index| %>
        <%= link_to action_path(action.param_id),
          data: {
            'turbo-frame': 'actions_show',
            'action': 'click->actions-picker#visitAction',
            'actions-picker-target': action.standalone ? 'standaloneAction' : 'resourceAction',
            'disabled': is_disabled?(action),
          },
          title: action.action_name,
          class: "flex items-center px-4 py-3 w-full font-semibold text-sm #{is_disabled?(action) ? 'text-gray-500' : 'text-black hover:bg-blue-500 hover:text-white'}" do %>
          <%= svg 'play', class: 'h-5 mr-1 inline' %> <%= action.action_name %>
        <% end %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
avo-2.12.1.pre.1 app/components/avo/actions_component.html.erb
avo-2.12.0 app/components/avo/actions_component.html.erb
avo-2.11.3.pre.3 app/components/avo/actions_component.html.erb
avo-2.11.3.pre.2 app/components/avo/actions_component.html.erb
avo-2.11.2.pre.3 app/components/avo/actions_component.html.erb
avo-2.11.2.pre.2 app/components/avo/actions_component.html.erb
avo-2.11.2.pre.1 app/components/avo/actions_component.html.erb
avo-2.11.1.pre.3 app/components/avo/actions_component.html.erb
avo-2.11.1 app/components/avo/actions_component.html.erb
avo-2.11.1.pre.2 app/components/avo/actions_component.html.erb
avo-2.11.1.pre.1 app/components/avo/actions_component.html.erb
avo-2.11.0 app/components/avo/actions_component.html.erb
avo-2.10.3.pre.1 app/components/avo/actions_component.html.erb
avo-2.10.2 app/components/avo/actions_component.html.erb
avo-2.9.2.pre1 app/components/avo/actions_component.html.erb
avo-2.10.0 app/components/avo/actions_component.html.erb
avo-2.9.1.pre7 app/components/avo/actions_component.html.erb
avo-2.9.1.pre6 app/components/avo/actions_component.html.erb
avo-2.9.1.pre5 app/components/avo/actions_component.html.erb
avo-2.9.1.pre4 app/components/avo/actions_component.html.erb