Skip to content

Commit 484b255

Browse files
luizhf42otavio
authored andcommitted
fix(ui): fix user confirmed checkbox tooltip position and message
1 parent f3f187e commit 484b255

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ui/admin/src/components/User/UserFormDialog.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
color="primary"
9696
variant="outlined"
9797
/>
98-
<v-tooltip location="bottom" class="text-center" :disabled="canChangeStatus">
98+
<v-tooltip location="bottom start" class="text-center" :disabled="canChangeStatus" :text="statusTooltipMessage">
9999
<template v-slot:activator="{ props }">
100100
<div v-bind="props">
101101
<v-checkbox
@@ -109,7 +109,6 @@
109109
/>
110110
</div>
111111
</template>
112-
<span>{{ statusTooltipMessage }}</span>
113112
</v-tooltip>
114113
</v-card-text>
115114
</FormDialog>
@@ -140,7 +139,7 @@ const snackbar = useSnackbar();
140139
const usersStore = useUsersStore();
141140
const statusTooltipMessage = props.user?.status === "invited"
142141
? "You cannot change the status of an invited user."
143-
: "You cannot remove confirmation from a user.";
142+
: "You cannot remove confirmation from an user.";
144143
145144
const { value: name,
146145
errorMessage: nameError,

ui/admin/tests/unit/components/User/UserFormDialog/__snapshots__/index.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ exports[`UserFormDialog (Create User) > Renders the component 2`] = `
418418
<!---->
419419
</transition-stub>
420420
<transition-stub name="fade-transition" appear="true" persisted="true" css="true" target="[object HTMLDivElement]">
421-
<div class="v-overlay__content" style="min-width: 0px; display: none;"><span>You cannot remove confirmation from a user.</span></div>
421+
<div class="v-overlay__content" style="min-width: 0px; display: none;">You cannot remove confirmation from an user.</div>
422422
</transition-stub>
423423
</div>
424424
</div>
@@ -843,7 +843,7 @@ exports[`UserFormDialog (Edit User) > Renders the component 2`] = `
843843
<!---->
844844
</transition-stub>
845845
<transition-stub name="fade-transition" appear="true" persisted="true" css="true" target="[object HTMLDivElement]">
846-
<div class="v-overlay__content" style="min-width: 0px; display: none;"><span>You cannot remove confirmation from a user.</span></div>
846+
<div class="v-overlay__content" style="min-width: 0px; display: none;">You cannot remove confirmation from an user.</div>
847847
</transition-stub>
848848
</div>
849849
</div>

0 commit comments

Comments
 (0)