mirror of
https://github.com/RoboSats/robosats.git
synced 2024-09-11 14:05:51 +03:00
Improve clarity on order not available message
This commit is contained in:
parent
eaa40417ad
commit
b5dd4fbea5
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user