Skip to content

Commit

Permalink
#2634 Add more tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalizer committed Jul 11, 2024
1 parent 83d6705 commit 83c4e59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard-prime/src/components/access/RoleManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ defineExpose({
</div>
<div>
<SkillsButton variant="outline-hc" @click="addUserRole" :disabled="addUsrBtnDisabled" data-cy="addUserBtn"
label="Add User"
label="Add User" id="addUserBtn" :track-for-focus="true"
:icon="isSaving ? 'fa fa-circle-notch fa-spin fa-3x-fa-fw' : 'fas fa-arrow-circle-right'">
</SkillsButton>
</div>
Expand Down Expand Up @@ -385,6 +385,8 @@ defineExpose({
</SkillsButton>
<SkillsButton @click="deleteUserRoleConfirm(slotProps.data)"
:disabled="!notCurrentUser(slotProps.data.userId)"
id="removeUserBtn"
:track-for-focus="true"
:aria-label="`remove access role from user ${slotProps.data.userId}`"
data-cy="removeUserBtn" icon="fas fa-trash" label="Delete" size="small">
</SkillsButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ const searchChanged = (query) => {
<Column header="Delete">
<template #body="slotProps">
<SkillsButton v-on:click="deleteSkill(slotProps.data)" size="small"
:id="`deleteSkill_${slotProps.data.skillId}`"
:track-for-focus="true"
:data-cy="`deleteSkill_${slotProps.data.skillId}`" icon="fas fa-trash" label="Delete"
:aria-label="`remove dependency on ${slotProps.data.skillId}`">
</SkillsButton>
Expand Down

0 comments on commit 83c4e59

Please sign in to comment.