From 574e2ce12fecce17da5a06405accc3da40c74c34 Mon Sep 17 00:00:00 2001 From: nelo Date: Thu, 24 Nov 2016 11:10:59 +0100 Subject: [PATCH] modificaciones left menu para que bindee --- @salix/core/src/leftmenu/itemmenu.html | 12 +++++++----- @salix/core/src/leftmenu/leftmenu.js | 8 ++------ @salix/core/src/mainmenu/mainmenu.html | 2 +- @salix/core/src/topbar/topbar.html | 2 +- @salix/crud/src/client/databasic/index.html | 2 +- @salix/crud/src/client/index/index.html | 2 +- @salix/crud/src/client/index/index.js | 11 ++++++++++- 7 files changed, 23 insertions(+), 16 deletions(-) diff --git a/@salix/core/src/leftmenu/itemmenu.html b/@salix/core/src/leftmenu/itemmenu.html index d911b6a14..42a643f3b 100644 --- a/@salix/core/src/leftmenu/itemmenu.html +++ b/@salix/core/src/leftmenu/itemmenu.html @@ -1,5 +1,7 @@ -
  • - keyboard_arrow_right - {{$ctrl.item.image}} - {{$ctrl.item.text}} -
  • \ No newline at end of file + +
  • + keyboard_arrow_right + {{$ctrl.item.image}} + {{$ctrl.item.text}} +
  • + \ No newline at end of file diff --git a/@salix/core/src/leftmenu/leftmenu.js b/@salix/core/src/leftmenu/leftmenu.js index 926de08be..0b58ea761 100644 --- a/@salix/core/src/leftmenu/leftmenu.js +++ b/@salix/core/src/leftmenu/leftmenu.js @@ -6,12 +6,8 @@ const _NAME = 'leftmenu'; export const NAME = util.getName(_NAME); export const COMPONENT = { template: template, - controller: function(){ - this.items = [ - {text: "Datos fiscales", image: "person"}, - {text: "Acceso web", image: "language"}, - {text: "Consignatarios", image: "local_shipping"} - ] + bindings: { + items: '<' } }; module.component(NAME, COMPONENT); diff --git a/@salix/core/src/mainmenu/mainmenu.html b/@salix/core/src/mainmenu/mainmenu.html index a19c55255..f221cf9a2 100644 --- a/@salix/core/src/mainmenu/mainmenu.html +++ b/@salix/core/src/mainmenu/mainmenu.html @@ -1,5 +1,5 @@
    apps notifications - account_circle + account_circle
    \ No newline at end of file diff --git a/@salix/core/src/topbar/topbar.html b/@salix/core/src/topbar/topbar.html index bf8faf4a3..ebfd62735 100644 --- a/@salix/core/src/topbar/topbar.html +++ b/@salix/core/src/topbar/topbar.html @@ -1,6 +1,6 @@

    Client

    - +
    \ No newline at end of file diff --git a/@salix/crud/src/client/databasic/index.html b/@salix/crud/src/client/databasic/index.html index 2be3c4caf..bf453058b 100644 --- a/@salix/crud/src/client/databasic/index.html +++ b/@salix/crud/src/client/databasic/index.html @@ -1,7 +1,7 @@ -

    CLIENTE _ Datos básicos

    +

    Datos básicos

    diff --git a/@salix/crud/src/client/index/index.html b/@salix/crud/src/client/index/index.html index 1b57e4186..f9fe275ba 100644 --- a/@salix/crud/src/client/index/index.html +++ b/@salix/crud/src/client/index/index.html @@ -2,7 +2,7 @@ - + diff --git a/@salix/crud/src/client/index/index.js b/@salix/crud/src/client/index/index.js index 4f135d42d..0fee98c74 100644 --- a/@salix/crud/src/client/index/index.js +++ b/@salix/crud/src/client/index/index.js @@ -5,6 +5,15 @@ const _NAME = 'clientIndex'; //export const NAME = module.getName(_NAME); export const NAME = "vnClientIndex"; export const COMPONENT = { - template: template + template: template, + controller: function(){ + this.items = [ + {text: "Datos básicos", image: "person"}, + {text: "Datos facturación", image: "assignment"}, + {text: "Acceso web", image: "language"}, + {text: "Consignatarios", image: "local_shipping"}, + {text: "Notas", image: "insert_drive_file"} + ] + } }; module.component(NAME, COMPONENT);