Skip to content

Commit

Permalink
fix(front): Remove ícone de edição de usuário do cabeçaçho de mensagens
Browse files Browse the repository at this point in the history
  • Loading branch information
anaelisaramos committed Feb 14, 2025
1 parent 4dcec44 commit cf1b0eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion web/src/components/Item-Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>

<button
v-if="userId === itemUserId"
v-if="userId === itemUserId && canEditUser"
type="button"
@click="editItem()"
class="flex items-center w-1/4 justify-end hover:scale-110 transition-transform duration-300"
Expand Down Expand Up @@ -66,6 +66,10 @@ export default {
itemId: {
type: [String, Number],
},
canEditUser: {
type: Boolean,
default: true,
},
},
methods: {
goBack() {
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/Chats.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="fixed w-full top-0 z-[1]">
<ItemHeader :title="'Mensagens'" />
<ItemHeader :title="'Mensagens'" :canEditUser="false" />
</div>

<div v-if="loadingChats" class="pt-32 pb-24 space-y-4">
Expand Down

0 comments on commit cf1b0eb

Please sign in to comment.