0
0
Fork 0
This commit is contained in:
Alex Moreno 2024-08-13 12:25:47 +02:00
commit e88e7fa9db
3 changed files with 18 additions and 3 deletions

View File

@ -159,6 +159,14 @@ const isEmployee = computed(() => useRole().isEmployee());
size="xxl"
color="transparent"
/>
<QBtn
v-if="isEmployee"
class="q-mt-sm q-px-md"
:to="`/worker/${user.id}`"
color="primary"
:label="t('My account')"
dense
/>
<div class="text-subtitle1 q-mt-md">
<strong>{{ user.nickname }}</strong>
</div>
@ -262,3 +270,7 @@ const isEmployee = computed(() => useRole().isEmployee());
}
}
</style>
<i18n>
es:
My account: Mi cuenta
</i18n>

View File

@ -407,9 +407,12 @@ watch(
@on-fetch="
(data) =>
(actions = data.map((item) => {
const changedModel = item.changedModel;
return {
locale: useCapitalize(validations[item.changedModel].locale.name),
value: item.changedModel,
locale: useCapitalize(
validations[changedModel]?.locale?.name ?? changedModel
),
value: changedModel,
};
}))
"

View File

@ -8,7 +8,7 @@ describe('Logout', () => {
describe('by user', () => {
it('should logout', () => {
cy.get('#user').click();
cy.get('.block').click();
cy.get('#logout').click();
});
});
describe('not user', () => {