YES: {{ (currentYes * 100).toFixed(2) }}%
NO: {{ (currentNo * 100).toFixed(2) }}%
diff --git a/vue/src/components/OrderForm.vue b/vue/src/components/OrderForm.vue
index 8f7c75e..f87835f 100644
--- a/vue/src/components/OrderForm.vue
+++ b/vue/src/components/OrderForm.vue
@@ -1,131 +1,31 @@
-
-
-
-
{{ err }}
+
+
diff --git a/vue/src/components/SellOrderForm.vue b/vue/src/components/SellOrderForm.vue
new file mode 100644
index 0000000..be35559
--- /dev/null
+++ b/vue/src/components/SellOrderForm.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
{{ err }}
+
+
+
+
+
+
diff --git a/vue/src/main.js b/vue/src/main.js
index b0cb0d9..3cf9b44 100644
--- a/vue/src/main.js
+++ b/vue/src/main.js
@@ -16,6 +16,8 @@ import UserOrders from '@/components/UserOrders'
import OrderForm from '@/components/OrderForm'
import MarketOrders from '@/components/MarketOrders'
import MarketStats from '@/components/MarketStats'
+import BuyOrderForm from '@/components/BuyOrderForm'
+import SellOrderForm from '@/components/SellOrderForm'
const routes = [
{
@@ -37,7 +39,19 @@ const routes = [
path: '/market/:id',
component: MarketView,
children: [
- { path: 'form', name: 'form', component: OrderForm },
+ {
+ path: 'form',
+ name: 'form',
+ component: OrderForm,
+ children: [
+ {
+ path: 'buy', name: 'form-buy', component: BuyOrderForm
+ },
+ {
+ path: 'sell', name: 'form-sell', component: SellOrderForm
+ }
+ ]
+ },
{ path: 'orders', name: 'market-orders', component: MarketOrders },
{ path: 'stats', name: 'market-stats', component: MarketStats }
]