mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
cleanup demo page
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<alfresco-upload-drag-area
|
<alfresco-upload-drag-area
|
||||||
[rootFolderId]="uploadRootFolderId"
|
[rootFolderId]="documentList.currentFolderId"
|
||||||
[currentFolderPath]="uploadFolderPath"
|
|
||||||
[versioning] = "versioning"
|
[versioning] = "versioning"
|
||||||
(onSuccess)="documentList.reload()">
|
(onSuccess)="documentList.reload()">
|
||||||
<alfresco-document-list-breadcrumb
|
<alfresco-document-list-breadcrumb
|
||||||
@@ -21,15 +20,7 @@
|
|||||||
[contentActions]="true"
|
[contentActions]="true"
|
||||||
(error)="onNavigationError($event)"
|
(error)="onNavigationError($event)"
|
||||||
(success)="resetError()"
|
(success)="resetError()"
|
||||||
(preview)="showFile($event)"
|
(preview)="showFile($event)">
|
||||||
(folderChange)="onFolderChanged($event)">
|
|
||||||
<!--
|
|
||||||
<empty-folder-content>
|
|
||||||
<template>
|
|
||||||
<h1>Sorry, no content here</h1>
|
|
||||||
</template>
|
|
||||||
</empty-folder-content>
|
|
||||||
-->
|
|
||||||
<content-columns>
|
<content-columns>
|
||||||
<content-column key="$thumbnail" type="image"></content-column>
|
<content-column key="$thumbnail" type="image"></content-column>
|
||||||
<content-column
|
<content-column
|
||||||
@@ -147,8 +138,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="!acceptedFilesTypeShow">
|
<div *ngIf="!acceptedFilesTypeShow">
|
||||||
<alfresco-upload-button data-automation-id="multiple-file-upload"
|
<alfresco-upload-button data-automation-id="multiple-file-upload"
|
||||||
[rootFolderId]="uploadRootFolderId"
|
[rootFolderId]="documentList.currentFolderId"
|
||||||
[currentFolderPath]="uploadFolderPath"
|
|
||||||
[multipleFiles]="multipleFileUpload"
|
[multipleFiles]="multipleFileUpload"
|
||||||
[uploadFolders]="folderUpload"
|
[uploadFolders]="folderUpload"
|
||||||
[versioning] = "versioning"
|
[versioning] = "versioning"
|
||||||
@@ -158,9 +148,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="acceptedFilesTypeShow">
|
<div *ngIf="acceptedFilesTypeShow">
|
||||||
<alfresco-upload-button data-automation-id="multiple-file-upload"
|
<alfresco-upload-button data-automation-id="multiple-file-upload"
|
||||||
[rootFolderId]="uploadRootFolderId"
|
[rootFolderId]="documentList.currentFolderId"
|
||||||
[currentFolderPath]="uploadFolderPath"
|
[acceptedFilesType]="acceptedFilesType"
|
||||||
acceptedFilesType="{{acceptedFilesType}}"
|
|
||||||
[multipleFiles]="multipleFileUpload"
|
[multipleFiles]="multipleFileUpload"
|
||||||
[uploadFolders]="folderUpload"
|
[uploadFolders]="folderUpload"
|
||||||
[versioning] = "versioning"
|
[versioning] = "versioning"
|
||||||
|
@@ -43,19 +43,8 @@ export class FilesComponent implements OnInit {
|
|||||||
folderUpload: boolean = false;
|
folderUpload: boolean = false;
|
||||||
acceptedFilesTypeShow: boolean = false;
|
acceptedFilesTypeShow: boolean = false;
|
||||||
versioning: boolean = false;
|
versioning: boolean = false;
|
||||||
|
|
||||||
acceptedFilesType: string = '.jpg,.pdf,.js';
|
acceptedFilesType: string = '.jpg,.pdf,.js';
|
||||||
|
|
||||||
get uploadRootFolderId(): string {
|
|
||||||
return this.currentFolderId;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: fix
|
|
||||||
get uploadFolderPath(): string {
|
|
||||||
// return this.currentFolderId ? '/' : this.currentPath;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ViewChild(DocumentList)
|
@ViewChild(DocumentList)
|
||||||
documentList: DocumentList;
|
documentList: DocumentList;
|
||||||
|
|
||||||
@@ -88,13 +77,6 @@ export class FilesComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onFolderChanged(event?: any) {
|
|
||||||
if (event) {
|
|
||||||
// this.currentPath = event.path;
|
|
||||||
console.log(event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
toggleMultipleFileUpload() {
|
toggleMultipleFileUpload() {
|
||||||
this.multipleFileUpload = !this.multipleFileUpload;
|
this.multipleFileUpload = !this.multipleFileUpload;
|
||||||
return this.multipleFileUpload;
|
return this.multipleFileUpload;
|
||||||
|
Reference in New Issue
Block a user