mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3854] Destination picker - exclude site content option (#4130)
This commit is contained in:
committed by
Eugenio Romano
parent
6be1cf56e3
commit
c17241fedc
@@ -112,6 +112,39 @@
|
||||
</adf-content-node-selector-panel>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
<h2>Exclude Site Content</h2>
|
||||
</mat-panel-title>
|
||||
<mat-panel-description>
|
||||
<label class="adf-content-node-selector-demo-basic-label">
|
||||
The exclude site content is filtered out from the list
|
||||
</label>
|
||||
</mat-panel-description>
|
||||
</mat-expansion-panel-header>
|
||||
<div>
|
||||
<label>Case when the excludeSiteContent is set as : <b>{{ excludeSiteContentList.join(', ') }}</b></label>
|
||||
</div>
|
||||
<div>
|
||||
<label>Navigate into a site having the top content along the 'documentLibrary' to see that such items are not displayed.</label>
|
||||
</div>
|
||||
<br />
|
||||
<mat-slide-toggle color="primary" [(ngModel)]="showFiles" (click)="recreateRowFilterFunction()">
|
||||
Show Files
|
||||
</mat-slide-toggle>
|
||||
<mat-slide-toggle color="primary" [(ngModel)]="showFolders" (click)="recreateRowFilterFunction()">
|
||||
Show Folders
|
||||
</mat-slide-toggle>
|
||||
|
||||
<div class="adf-content-node-selector-demo-basic-table">
|
||||
<adf-content-node-selector-panel
|
||||
[rowFilter]="rowFilterFunction"
|
||||
[excludeSiteContent]="excludeSiteContentList"
|
||||
[currentFolderId]="'-root-'">
|
||||
</adf-content-node-selector-panel>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
import { Component, ViewEncapsulation } from '@angular/core';
|
||||
import { SitePaging, SiteEntry, MinimalNodeEntryEntity } from '@alfresco/js-api';
|
||||
import { ShareDataRow } from '@alfresco/adf-content-services';
|
||||
import { ContentNodeDialogService, ShareDataRow } from '@alfresco/adf-content-services';
|
||||
import { DataRow, DataColumn, ThumbnailService } from '@alfresco/adf-core';
|
||||
|
||||
@Component({
|
||||
@@ -41,6 +41,7 @@ export class ContentNodeSelectorComponent {
|
||||
actualPageSize = 2;
|
||||
|
||||
rowFilterFunction: any = null;
|
||||
excludeSiteContentList: string[] = ContentNodeDialogService.nonDocumentSiteContent;
|
||||
customImageResolver: any = null;
|
||||
|
||||
defaultSites: SiteEntry[] = [
|
||||
|
Reference in New Issue
Block a user