From 6e1d3135d5d20a2de10f1ebe0ef3e7032bfe4baf Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Wed, 14 Feb 2018 14:24:14 +0100 Subject: [PATCH] mini refactor on routes.json and crudAddressObervations --- client/item/routes.json | 29 ++++++++++++------- .../address/crudAddressObservations.js | 3 -- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/client/item/routes.json b/client/item/routes.json index 74dbe6dad..94722cd38 100644 --- a/client/item/routes.json +++ b/client/item/routes.json @@ -15,16 +15,19 @@ "state": "item.index", "component": "vn-item-list", "acl": ["developer"] - }, { + }, + { "url": "/create", "state": "item.create", "component": "vn-item-create" - }, { + }, + { "url": "/:id", "state": "item.card", "abstract": true, "component": "vn-item-card" - }, { + }, + { "url" : "/data", "state": "item.card.data", "component": "vn-item-data", @@ -35,7 +38,8 @@ "description": "Basic data", "icon": "folder" } - },{ + }, + { "url" : "/tags", "state": "item.card.tags", "component": "vn-item-tags", @@ -46,7 +50,8 @@ "description": "Tags", "icon": "folder" } - },{ + }, + { "url" : "/history", "state": "item.card.history", "component": "vn-item-history", @@ -57,7 +62,8 @@ "description": "History", "icon": "folder" } - },{ + }, + { "url" : "/niche", "state": "item.card.niche", "component": "vn-item-niche", @@ -68,7 +74,8 @@ "description": "Niche", "icon": "folder" } - },{ + }, + { "url" : "/botanical", "state": "item.card.botanical", "component": "vn-item-botanical", @@ -79,7 +86,8 @@ "description": "Botanical", "icon": "folder" } - },{ + }, + { "url" : "/picture", "state": "item.card.picture", "component": "vn-item-picture", @@ -90,9 +98,10 @@ "description": "Picture", "icon": "folder" } - }, { + }, + { "url" : "/barcode", - "state": "item.card.barcode", + "state": "item.card.itemBarcode", "component": "vn-item-barcode", "params": { "item": "$ctrl.item" diff --git a/services/client/common/methods/address/crudAddressObservations.js b/services/client/common/methods/address/crudAddressObservations.js index b158b0749..0b80d1bac 100644 --- a/services/client/common/methods/address/crudAddressObservations.js +++ b/services/client/common/methods/address/crudAddressObservations.js @@ -11,9 +11,6 @@ module.exports = Self => { http: {source: 'body'} } ], - returns: { - arg: 'sumAmount' - }, http: { path: `/crudAddressObservations`, verb: 'post'