Skip to content

Commit

Permalink
fix: (mini) ticket list: use auth store instead of inject (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad committed May 5, 2023
1 parent ce817a7 commit 85c0c18
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions desk/src/components/global/ticket_list_item/Subject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
path: `/tickets/${ticket.name}`,
}"
role="button"
class="line-clamp-1 hover:text-gray-900 text-gray-600"
class="line-clamp-1 text-gray-600 hover:text-gray-900"
:class="{
'font-semibold text-gray-900': !(
JSON.parse(ticket._seen) || []
).includes(user.user),
'font-semibold text-gray-900': !(JSON.parse(ticket._seen) || []).includes(
authStore.userId
),
}"
>
{{ ticket.subject }}
</router-link>
</template>

<script>
export default {
name: "Subject",
props: {
ticket: {
type: Object,
required: true,
},
<script setup lang="ts">
import { useAuthStore } from "@/stores/auth";
defineProps({
ticket: {
type: Object,
required: true,
},
inject: ["user"],
}
});
const authStore = useAuthStore();
</script>

0 comments on commit 85c0c18

Please sign in to comment.