From c996fa7aefbd1a4f853a7080904a9a2505aa9c88 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Tue, 14 May 2019 15:05:26 +0200 Subject: [PATCH] feat(admin-ui): Improve collection list & child collection creation --- .../collection-detail.component.ts | 4 ++++ .../collection-tree-node.component.html | 16 +++++++++++----- .../collection-tree-node.component.scss | 4 ++++ .../product-list/product-list.component.html | 2 +- .../product-list/product-list.component.scss | 6 ------ .../data/providers/collection-data.service.ts | 1 + admin-ui/src/styles/theme/_theme.scss | 6 ++++++ 7 files changed, 27 insertions(+), 12 deletions(-) diff --git a/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.ts b/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.ts index a4802d53fd..c9ea30c099 100644 --- a/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.ts +++ b/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.ts @@ -141,6 +141,10 @@ export class CollectionDetailComponent extends BaseDetailComponent
--> - + + + + {{ 'catalog.create-new-collection' | translate }} + + diff --git a/admin-ui/src/app/catalog/components/product-list/product-list.component.scss b/admin-ui/src/app/catalog/components/product-list/product-list.component.scss index 8631245060..734e61fb30 100644 --- a/admin-ui/src/app/catalog/components/product-list/product-list.component.scss +++ b/admin-ui/src/app/catalog/components/product-list/product-list.component.scss @@ -23,12 +23,6 @@ } .search-settings-menu { margin: 0 12px; - > button { - background: none; - border: none; - cursor: pointer; - color: $color-grey-500; - } } td.disabled { background-color: $color-grey-200; diff --git a/admin-ui/src/app/data/providers/collection-data.service.ts b/admin-ui/src/app/data/providers/collection-data.service.ts index 5e426a88f3..695b99d35a 100644 --- a/admin-ui/src/app/data/providers/collection-data.service.ts +++ b/admin-ui/src/app/data/providers/collection-data.service.ts @@ -61,6 +61,7 @@ export class CollectionDataService { { input: pick(input, [ 'translations', + 'parentId', 'assetIds', 'featuredAssetId', 'filters', diff --git a/admin-ui/src/styles/theme/_theme.scss b/admin-ui/src/styles/theme/_theme.scss index 6b4f52504c..8548896718 100644 --- a/admin-ui/src/styles/theme/_theme.scss +++ b/admin-ui/src/styles/theme/_theme.scss @@ -34,6 +34,12 @@ a:focus, button:focus { .compact-label { display: initial; } +button.icon-button { + border: none; + background: none; + cursor: pointer; + color: $color-grey-500; +} @media screen and (min-width: $breakpoint-small) { .full-label { display: initial;