UI Push Deep Links und Drive Diagnose verbessern
All checks were successful
CI / Build and Deploy (push) Successful in 2m30s
All checks were successful
CI / Build and Deploy (push) Successful in 2m30s
This commit is contained in:
@@ -8,6 +8,7 @@ type PushTargetExpense = {
|
||||
id: string;
|
||||
title: string;
|
||||
amount: number;
|
||||
workingGroupId: string;
|
||||
};
|
||||
|
||||
type PushTargetBudgetRelease = {
|
||||
@@ -71,7 +72,7 @@ export async function notifyApprovalRequest(expense: PushTargetExpense, approval
|
||||
const payload = JSON.stringify({
|
||||
title: "Freigabe angefragt",
|
||||
body: `${expense.title} (${expense.amount.toFixed(2)} EUR) braucht ${approvalType ? approvalLabel(approvalType) : "deine Freigabe"}.`,
|
||||
url: `/?expense=${encodeURIComponent(expense.id)}`,
|
||||
url: `/?expense=${encodeURIComponent(expense.id)}&group=${encodeURIComponent(expense.workingGroupId)}`,
|
||||
tag: `approval-${expense.id}-${subscription.user.role}`
|
||||
});
|
||||
|
||||
@@ -120,7 +121,7 @@ export async function notifyBudgetRelease(budget: PushTargetBudgetRelease, targe
|
||||
const payload = JSON.stringify({
|
||||
title: "Budget freigegeben",
|
||||
body: `${budget.workingGroupName}: ${budget.name} wurde mit ${budget.releasedAmount.toFixed(2)} EUR freigegeben.`,
|
||||
url: `/?budget=${encodeURIComponent(budget.id)}`,
|
||||
url: `/?budget=${encodeURIComponent(budget.id)}&group=${encodeURIComponent(budget.workingGroupId)}`,
|
||||
tag: `budget-release-${budget.id}`
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user