@@ -12,16 +12,14 @@ else
)
end
-if @buy
- field(
- var: "http://jabber.org/protocol/commands#actions",
- label: "Action",
- type: "list-single",
- options: [
- { label: "Done", value: "complete" },
- { label: "Order new Physical SIM", value: "order-sim" },
- { label: "Order new eSIM", value: "order-esim" }
+field(
+ var: "http://jabber.org/protocol/commands#actions",
+ label: "Action",
+ type: "list-single",
+ options: [
+ { label: "Done", value: "complete" },
+ { label: "Order new Physical SIM", value: "order-sim" },
+ { label: "Order new eSIM", value: "order-esim" }
],
- value: "complete"
- )
-end
+ value: "complete"
+)
@@ -722,9 +722,7 @@ Command.new(
EMPromise.all([customer, SIMRepo.new.owned_by(customer)])
}.then do |(customer, sims)|
Command.reply { |reply|
- buy = customer.feature_flags.include?(:buy_sim)
- reply.status = "completed" unless buy
- reply.command << FormTemplate.render("sim_details", sims: sims, buy: buy)
+ reply.command << FormTemplate.render("sim_details", sims: sims)
}.then { |iq|
case iq.form.field("http://jabber.org/protocol/commands#actions")&.value
when "order-sim"