From fc22c2a4c861244ef1c764deea9b4f2ece8b7287 Mon Sep 17 00:00:00 2001 From: Vito Date: Mon, 16 Apr 2018 21:05:24 +0100 Subject: [PATCH] =?UTF-8?q?[ADF-2734]=20added=20the=20listner=20for=20user?= =?UTF-8?q?=20preference=20supported=20page=20to=20th=E2=80=A6=20(#3201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [ADF-2734] added the listner for user preference supported page to the trashcan * [ADF-2734] revert changes on app.config * [ADF-2734] added missing whitespace --- .../app/components/trashcan/trashcan.component.html | 1 + .../src/app/components/trashcan/trashcan.component.ts | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/demo-shell/src/app/components/trashcan/trashcan.component.html b/demo-shell/src/app/components/trashcan/trashcan.component.html index d16e81eeea..bfb1a192b1 100644 --- a/demo-shell/src/app/components/trashcan/trashcan.component.html +++ b/demo-shell/src/app/components/trashcan/trashcan.component.html @@ -92,6 +92,7 @@ diff --git a/demo-shell/src/app/components/trashcan/trashcan.component.ts b/demo-shell/src/app/components/trashcan/trashcan.component.ts index aa6e96bc39..a7fcc17ec1 100644 --- a/demo-shell/src/app/components/trashcan/trashcan.component.ts +++ b/demo-shell/src/app/components/trashcan/trashcan.component.ts @@ -25,6 +25,7 @@ import { Component, ViewChild } from '@angular/core'; import { DocumentListComponent } from '@alfresco/adf-content-services'; +import { UserPreferencesService, UserPreferenceValues } from '@alfresco/adf-core'; @Component({ templateUrl: './trashcan.component.html', @@ -35,6 +36,15 @@ export class TrashcanComponent { @ViewChild('documentList') documentList: DocumentListComponent; + supportedPages = []; + + constructor(private preference: UserPreferencesService) { + this.preference.select(UserPreferenceValues.SupportedPageSizes) + .subscribe((pages) => { + this.supportedPages = pages; + }); + } + refresh() { this.documentList.reload(); this.documentList.resetSelection();