feat: allow quote editing for all statuses except completed
All checks were successful
Staging Build / build (push) Successful in 3m35s
All checks were successful
Staging Build / build (push) Successful in 3m35s
This commit is contained in:
@@ -132,7 +132,7 @@ export default async function MyOrdersPage() {
|
||||
Details ansehen
|
||||
</Button>
|
||||
</Link>
|
||||
{o.status === 'pending' && (
|
||||
{o.status !== 'completed' && (
|
||||
<Link href={`/order?id=${o.id}`}>
|
||||
<Button variant="outline" size="sm" className="border-amber-500/20 hover:bg-amber-500/10 hover:border-amber-500/40 text-amber-400 text-xs">
|
||||
Bearbeiten
|
||||
|
||||
@@ -66,7 +66,7 @@ async function OrderDataWrapper({ orderId }: { orderId?: string }) {
|
||||
redirect('/order')
|
||||
}
|
||||
|
||||
if (orderData.status !== 'pending' && !isAdmin) {
|
||||
if (orderData.status === 'completed' && !isAdmin) {
|
||||
redirect('/order')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user