Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ mat-toolbar {

button.returned {
color: white;
border-color: var(--ion-color-danger);
border-color: #e31587;
background-color: #e31587;
}

button.missed {
color: #e31587;
border-color: #e31587;
}
}

.column {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export async function getStatus(
) {
const resolvedEmail = await email;
if (transaction.expired) {
return Status.Returned;
if (transaction.sender === resolvedEmail) {
return Status.Returned;
}
return Status.Missed;
}
if (!transaction.fulfilled_at) {
if (transaction.receiver_email === resolvedEmail) {
Expand All @@ -59,6 +62,7 @@ enum Status {
waitingToBeAccepted = 'waitingToBeAccepted',
InProgress = 'inProgress',
Returned = 'returned',
Missed = 'missed',
Delivered = 'delivered',
Accepted = 'accepted',
}
7 changes: 6 additions & 1 deletion src/app/features/home/transaction/transaction.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ mat-toolbar {

button.returned {
color: white;
border-color: var(--ion-color-danger);
border-color: #e31587;
background-color: #e31587;
}

button.missed {
color: #e31587;
border-color: #e31587;
}
}
}
1 change: 1 addition & 0 deletions src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"accepted": "Accepted",
"delivered": "Delivered",
"returned": "Returned",
"missed": "Returned",
"inProgress": "In Progress",
"waitingToBeAccepted": "In Progress",
"null": "Not Provided"
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
"accepted": "已接收",
"delivered": "已送出",
"returned": "已退回",
"missed": "已退回",
"inProgress": "等待中",
"waitingToBeAccepted": "等待中",
"null": "未提供"
Expand Down