Currently, I am in the process of creating an application similar to Trello.
My setup involves using a user_list
for categories and ticket_list
for items within each category.
Each item in the ticket_list
is linked to a user's id in the user_list
.
One feature I would like to implement is having a static field called UNASSIGNED
, where I can move all items from the ticket_list
that do not have a corresponding user_id
in the user_list
.
This is what my code looks like....
<div class="static_ticket_category">
<span>Unassigned</span>
</div>
<div v-for="user in user_list" :key="user_index">
<div class="ticket_category">
<span>{{user.name}}</span>
</div>
<div class="ticket_items">
<div v-for="item in ticket_list">
<draggable .....>
<template v-if="item.user_id == user.id">
<v-card>
...content goes here
</v-card>
</template>
</draggable>
</div>
</div>
</div>
The current code functions correctly... however, it does not display items with no user id associated.
I am wondering if there is a way to automatically assign these unlinked items to the Unassigned
category?