#242 Reworked breadcrumb, deprecated up button

- reworked breadcrumb
- deprecated up button in favour of external implementations
- removed hardcoded “document library” path from document list (always
start with root)
- always dealing with ‘absolute’ paths
- simplified upload demo
This commit is contained in:
Denys Vuika
2016-06-21 11:40:49 +01:00
parent 14449da0ba
commit bf7414fc85
5 changed files with 61 additions and 131 deletions

View File

@@ -48,10 +48,7 @@ declare let __moduleName: string;
pipes: [AlfrescoPipeTranslate]
})
export class FilesComponent {
breadcrumb: boolean = false;
navigation: boolean = true;
absolutePath: string = '/Sites/swsdp/documentLibrary';
relativePath: string = '';
currentPath: string = '/Sites/swsdp/documentLibrary';
urlFile: string;
fileName: string;
@@ -78,10 +75,6 @@ export class FilesComponent {
alert('Custom folder action for ' + event.value.entry.name);
}
refreshDocumentList() {
this.absolutePath += '/';
}
showFile(event) {
if (event.value.entry.isFile) {
this.fileName = event.value.entry.name;
@@ -95,8 +88,7 @@ export class FilesComponent {
onFolderChanged(event?: any) {
if (event) {
this.absolutePath = event.absolutePath;
this.relativePath = event.relativePath;
this.currentPath = event.path;
}
}
}