Skip to content

Commit

Permalink
Merge pull request #1869 from RitvikSardana/develop-ritvik-ticket-rating
Browse files Browse the repository at this point in the history
fix: show rating component in ticket list view
  • Loading branch information
RitvikSardana authored Jul 19, 2024
2 parents 079817d + 0e30176 commit e2857f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion desk/src/components/ticket/TicketsAgentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
variant="outline"
/>
</div>
<div v-if="column.type === 'Rating'">
<StarRating :rating="item" />
</div>
<div v-else-if="column.key === 'response_by'">
<Badge
v-if="
Expand Down Expand Up @@ -129,7 +132,7 @@ import {
ListHeader,
ListFooter,
} from "frappe-ui";
import { MultipleAvatar } from "@/components";
import { MultipleAvatar, StarRating } from "@/components";
const ticketStatusStore = useTicketStatusStore();
const router = useRouter();
Expand Down
4 changes: 2 additions & 2 deletions desk/src/pages/TicketsAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ function processFieldClick(event) {
function processColumns(columnEvent) {
if (columnEvent.event === "add") {
columns = [columnEvent.data, ...columns];
rows = [columnEvent.data.key, ...rows];
columns = [...columns, columnEvent.data];
rows = [...rows, columnEvent.data.key];
} else if (columnEvent.event === "remove") {
rows = rows.filter((row) => {
return row != columnEvent.data.key;
Expand Down

0 comments on commit e2857f9

Please sign in to comment.