Improve clarity on order not available message

This commit is contained in:
Reckless_Satoshi 2022-07-01 04:22:26 -07:00
parent eaa40417ad
commit b5dd4fbea5
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 5 additions and 5 deletions

View File

@ -220,7 +220,7 @@ class OrderView(viewsets.ViewSet):
# 3.a) If not a participant and order is not public, forbid.
if not data["is_participant"] and order.status != Order.Status.PUB:
return Response(
{"bad_request": "You are not allowed to see this order"},
{"bad_request": "This order is not available"},
status.HTTP_403_FORBIDDEN,
)
@ -951,7 +951,7 @@ class RewardView(CreateAPIView):
return Response({"successful_withdrawal": True}, status.HTTP_200_OK)
class PriceView(CreateAPIView):
class PriceView(ListAPIView):
serializer_class = PriceSerializer
@ -975,7 +975,7 @@ class PriceView(CreateAPIView):
return Response(payload, status.HTTP_200_OK)
class TickView(CreateAPIView):
class TickView(ListAPIView):
queryset = MarketTick.objects.all()
serializer_class = TickSerializer

View File

@ -251,7 +251,7 @@
"Invalid Order Id":"Invalid Order Id",
"You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details",
"This order has been cancelled collaborativelly":"This order has been cancelled collaboratively",
"You are not allowed to see this order":"You are not allowed to see this order",
"This order is not available":"This order is not available",
"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues",
"CHAT BOX - Chat.js":"Chat Box",

View File

@ -252,7 +252,7 @@
"Invalid Order Id": "ID de orden no válida",
"You must have a robot avatar to see the order details": "Debes tener un Robot para ver los detalles de la orden",
"This order has been cancelled collaborativelly":"Esta orden se ha cancelado colaborativamente",
"You are not allowed to see this order": "No tienes permiso para ver esta orden",
"This order is not available": "Esta orden no está disponible",
"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues": "Los Satoshis Robóticos del almacén no te entendieron. Por favor rellena un Bug Issue en Github https://github.com/reckless-satoshi/robosats/issues",