kpmg-agile / ca-pqvp

KPMG submission for CA PQVP
https://www.calproc.website
7 stars 3 forks source link

Ca pqvp 218 admin refactoring #226

Closed npearce-kpmg closed 7 years ago

npearce-kpmg commented 7 years ago

Admin/shop sharing product-list and product-tile Created a layout configuration object populated based on UserRoleService.isUserAdmin

const layouts = {
      shop: {routeItem: '/shop/product', showSubHeader: false, isCompareAvailable: true},
      admin: {routeItem: '/admin/catalog-item', showSubHeader: true, isCompareAvailable: false}
};
return userRoleService.isUserAdmin ? layouts.admin : layouts.shop;

subheader is a bit hackish so maybe we can clean it up with ng-content

npearce-kpmg commented 7 years ago

pulled in master with corrected product service and RAML changes GET/PUT working with all floats/integers properly defined