Skip to content

Commit

Permalink
[fix] Fixed identification of user and group chats.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Jul 23, 2021
1 parent bf10265 commit 7d5f0fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/Dashboard/Request/Request.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export function StatusTable(props: {
</Button>
&nbsp;
{
row.group_id !== 0 &&
!(row.group_id === 0 || row.group_id == null) &&
<Button
size="small"
variant="outlined"
Expand All @@ -257,7 +257,7 @@ export function StatusTable(props: {
</Button>
}
{
row.group_id === 0 &&
(row.group_id === 0 || row.group_id == null) &&
<Button
size="small"
variant="outlined"
Expand Down
10 changes: 6 additions & 4 deletions src/components/Dashboard/Ticket/Ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@ export function StatusTable(props: {
<TableRow key={"ticket_detail_" + index}>
<TableCell component="th" scope="row">
{
row.group_id === 0 && <Chip size="small" color="primary" label="U"/>
(row.group_id === 0 || row.group_id == null) &&
<Chip size="small" color="primary" label="U"/>
}
{
row.group_id !== 0 && <Chip size="small" color="primary" label="G"/>
!(row.group_id === 0 || row.group_id == null) &&
<Chip size="small" color="primary" label="G"/>
}
&nbsp;
{row.ID}: {row.title}
Expand Down Expand Up @@ -227,7 +229,7 @@ export function StatusTable(props: {
</Button>
&nbsp;
{
row.group_id !== 0 &&
!(row.group_id === 0 || row.group_id == null) &&
<Button
size="small"
variant="outlined"
Expand All @@ -236,7 +238,7 @@ export function StatusTable(props: {
</Button>
}
{
row.group_id === 0 &&
(row.group_id === 0 || row.group_id == null) &&
<Button
size="small"
variant="outlined"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Support/Support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export default function Support() {
</Typography>
<br/>
{
ticket.group_id === 0 &&
(ticket.group_id === 0 || ticket.group_id == null) &&
<Chip
size="small"
color="primary"
label="個人チャット"
/>
}
{
ticket.group_id !== 0 &&
!(ticket.group_id === 0 || ticket.group_id == null) &&
<Chip
size="small"
color="primary"
Expand Down

0 comments on commit 7d5f0fa

Please sign in to comment.