|
@@ -6,7 +6,10 @@ import { LoginPage } from "../pages/login/login";
|
|
|
import { HomePage } from "../pages/home/home";
|
|
|
import { CustomersPage } from "../pages/customers/customers";
|
|
|
import { ProductsPage } from "../pages/products/products";
|
|
|
+import { VariantsPage } from "../pages/variants/variants";
|
|
|
import { OrdersPage } from "../pages/orders/orders";
|
|
|
+import { LeadsPage } from "../pages/leads/leads";
|
|
|
+import { PhonecallsPage } from "../pages/phonecalls/phonecalls";
|
|
|
import { ToolsPage } from "../pages/tools/tools";
|
|
|
import { AboutPage } from "../pages/about/about";
|
|
|
|
|
@@ -48,7 +51,7 @@ export class MyApp {
|
|
|
{
|
|
|
visible: true,
|
|
|
title: "Ventas",
|
|
|
- icon: "basket",
|
|
|
+ icon: "cart",
|
|
|
component: OrdersPage,
|
|
|
params: {
|
|
|
filters: [["state", "!=", "draft"]]
|
|
@@ -60,6 +63,42 @@ export class MyApp {
|
|
|
icon: "cube",
|
|
|
component: ProductsPage
|
|
|
},
|
|
|
+ {
|
|
|
+ visible: true,
|
|
|
+ title: 'Variantes',
|
|
|
+ icon: "list-box",
|
|
|
+ component: VariantsPage
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ visible: true,
|
|
|
+ title: "CRM",
|
|
|
+ pages: [
|
|
|
+ {
|
|
|
+ visible: true,
|
|
|
+ title: 'Iniciativas',
|
|
|
+ icon: "flag",
|
|
|
+ component: LeadsPage,
|
|
|
+ params: {
|
|
|
+ filters: [["type", "=", "lead"]]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ visible: true,
|
|
|
+ title: "Oportunidades",
|
|
|
+ icon: "bonfire",
|
|
|
+ component: LeadsPage,
|
|
|
+ params: {
|
|
|
+ filters: [["type", "=", "opportunity"]]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ visible: true,
|
|
|
+ title: "Llamadas",
|
|
|
+ icon: "call",
|
|
|
+ component: PhonecallsPage
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -97,6 +136,6 @@ export class MyApp {
|
|
|
*
|
|
|
*/
|
|
|
openPage(page) {
|
|
|
- this.nav.setRoot(page.component, page.params);
|
|
|
+ this.nav.setRoot(page.component, page);
|
|
|
}
|
|
|
}
|