This commit is contained in:
@ -33,7 +33,7 @@
|
||||
<.link
|
||||
:if={is_owner?(context, @current_user)}
|
||||
patch={Routes.context_index_path(@socket, :edit, context.slug)}
|
||||
data-qa={"context-edit-#{context.id}"}
|
||||
aria-label={gettext("edit %{context_slug}", context_slug: context.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
@ -43,7 +43,7 @@
|
||||
phx-click="delete"
|
||||
phx-value-id={context.id}
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-context-#{context.id}"}
|
||||
aria-label={gettext("delete %{context_slug}", context_slug: context.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</.link>
|
||||
|
@ -36,7 +36,7 @@
|
||||
class="btn btn-primary"
|
||||
phx-click="delete"
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-context-#{@context.id}"}
|
||||
aria-label={gettext("delete %{context_slug}", context_slug: @context.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</button>
|
||||
|
@ -21,6 +21,7 @@
|
||||
type="submit"
|
||||
class="mx-2 my-1 btn btn-secondary"
|
||||
phx-click={JS.dispatch("memex:clipcopy", to: "#code-#{invite.id}")}
|
||||
aria-label={gettext("copy invite link for %{invite_name}", invite_name: invite.name)}
|
||||
>
|
||||
<%= dgettext("actions", "copy") %>
|
||||
</button>
|
||||
@ -29,7 +30,7 @@
|
||||
<.link
|
||||
patch={Routes.invite_index_path(Endpoint, :edit, invite)}
|
||||
class="text-primary-400 link"
|
||||
data-qa={"edit-#{invite.id}"}
|
||||
aria-label={gettext("edit invite for %{invite_name}", invite_name: invite.name)}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
</.link>
|
||||
@ -44,7 +45,7 @@
|
||||
invite_name: invite.name
|
||||
)
|
||||
}
|
||||
data-qa={"delete-#{invite.id}"}
|
||||
aria-label={gettext("delete invite for %{invite_name}", invite_name: invite.name)}
|
||||
>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
</.link>
|
||||
|
@ -102,7 +102,6 @@ defmodule MemexWeb.LiveHelpers do
|
||||
value={@value}
|
||||
checked={@value}
|
||||
class="sr-only peer"
|
||||
data-qa={@id}
|
||||
{
|
||||
if assigns |> Map.has_key?(:target),
|
||||
do: %{"phx-click": @action, "phx-value-value": @value, "phx-target": @target},
|
||||
|
@ -33,7 +33,7 @@
|
||||
<.link
|
||||
:if={is_owner?(note, @current_user)}
|
||||
patch={Routes.note_index_path(@socket, :edit, note.slug)}
|
||||
data-qa={"note-edit-#{note.id}"}
|
||||
aria-label={gettext("edit %{note_slug}", note_slug: note.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
@ -43,7 +43,7 @@
|
||||
phx-click="delete"
|
||||
phx-value-id={note.id}
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-note-#{note.id}"}
|
||||
aria-label={gettext("delete %{note_slug}", note_slug: note.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</.link>
|
||||
|
@ -36,7 +36,7 @@
|
||||
class="btn btn-primary"
|
||||
phx-click="delete"
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-note-#{@note.id}"}
|
||||
aria-label={gettext("delete %{note_slug}", note_slug: @note.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</button>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<.link
|
||||
:if={is_owner?(pipeline, @current_user)}
|
||||
patch={Routes.pipeline_index_path(@socket, :edit, pipeline.slug)}
|
||||
data-qa={"pipeline-edit-#{pipeline.id}"}
|
||||
aria-label={gettext("edit %{pipeline_slug}", pipeline_slug: pipeline.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
@ -43,7 +43,7 @@
|
||||
phx-click="delete"
|
||||
phx-value-id={pipeline.id}
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-pipeline-#{pipeline.id}"}
|
||||
aria-label={gettext("delete %{pipeline_slug}", pipeline_slug: pipeline.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</.link>
|
||||
|
@ -44,7 +44,7 @@
|
||||
class="btn btn-primary"
|
||||
phx-click="delete"
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-pipeline-#{@pipeline.id}"}
|
||||
aria-label={gettext("delete %{pipeline_slug}", pipeline_slug: @pipeline.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</button>
|
||||
@ -78,7 +78,7 @@
|
||||
phx-click="reorder_step"
|
||||
phx-value-direction="up"
|
||||
phx-value-step-id={step_id}
|
||||
data-qa={"move-step-up-#{step_id}"}
|
||||
aria-label={gettext("move %{step_title} up", step_title: step.title)}
|
||||
>
|
||||
<i class="fas text-xl fa-chevron-up"></i>
|
||||
</button>
|
||||
@ -93,7 +93,7 @@
|
||||
phx-click="reorder_step"
|
||||
phx-value-direction="down"
|
||||
phx-value-step-id={step_id}
|
||||
data-qa={"move-step-down-#{step_id}"}
|
||||
aria-label={gettext("move %{step_title} down", step_title: step.title)}
|
||||
>
|
||||
<i class="fas text-xl fa-chevron-down"></i>
|
||||
</button>
|
||||
@ -102,7 +102,7 @@
|
||||
<.link
|
||||
class="self-end btn btn-primary"
|
||||
patch={Routes.pipeline_show_path(@socket, :edit_step, @pipeline.slug, step_id)}
|
||||
data-qa={"edit-step-#{step_id}"}
|
||||
aria-label={gettext("edit %{step_title}", step_title: step.title)}
|
||||
>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
@ -113,7 +113,7 @@
|
||||
phx-click="delete_step"
|
||||
phx-value-step-id={step_id}
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
data-qa={"delete-step-#{step_id}"}
|
||||
aria-label={gettext("delete %{step_title}", step_title: step.title)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</button>
|
||||
@ -129,7 +129,6 @@
|
||||
:if={is_owner?(@pipeline, @current_user)}
|
||||
class="self-end btn btn-primary"
|
||||
patch={Routes.pipeline_show_path(@socket, :add_step, @pipeline.slug)}
|
||||
data-qa={"add-step-#{@pipeline.id}"}
|
||||
>
|
||||
<%= dgettext("actions", "add step") %>
|
||||
</.link>
|
||||
|
Reference in New Issue
Block a user