mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ci:force] remove logger and custom action
This commit is contained in:
@@ -277,13 +277,6 @@
|
|||||||
</data-columns>
|
</data-columns>
|
||||||
|
|
||||||
<content-actions>
|
<content-actions>
|
||||||
<!-- Conditional actions demo -->
|
|
||||||
<content-action
|
|
||||||
target="all"
|
|
||||||
title="Action for 'custom' node"
|
|
||||||
[disabled]="isCustomActionDisabled"
|
|
||||||
(execute)="runCustomAction($event)">
|
|
||||||
</content-action>
|
|
||||||
<content-action
|
<content-action
|
||||||
icon="get_app"
|
icon="get_app"
|
||||||
title="Download this file now!"
|
title="Download this file now!"
|
||||||
|
@@ -44,7 +44,6 @@ import {
|
|||||||
AuthenticationService,
|
AuthenticationService,
|
||||||
AppConfigService,
|
AppConfigService,
|
||||||
AppConfigValues,
|
AppConfigValues,
|
||||||
LogService,
|
|
||||||
NotificationService,
|
NotificationService,
|
||||||
DataRow,
|
DataRow,
|
||||||
UserPreferencesService,
|
UserPreferencesService,
|
||||||
@@ -256,7 +255,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
private dialog: MatDialog,
|
private dialog: MatDialog,
|
||||||
private location: Location,
|
private location: Location,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private logService: LogService,
|
|
||||||
private appConfig: AppConfigService,
|
private appConfig: AppConfigService,
|
||||||
private preference: UserPreferencesService,
|
private preference: UserPreferencesService,
|
||||||
private preview: PreviewService,
|
private preview: PreviewService,
|
||||||
@@ -394,15 +392,12 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onFolderCreated(event: FolderCreatedEvent) {
|
onFolderCreated(event: FolderCreatedEvent) {
|
||||||
this.logService.log('FOLDER CREATED');
|
|
||||||
this.logService.log(event);
|
|
||||||
if (event && event.parentId === this.documentList.currentFolderId) {
|
if (event && event.parentId === this.documentList.currentFolderId) {
|
||||||
this.documentList.reload();
|
this.documentList.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onFolderAction(node) {
|
onFolderAction(node) {
|
||||||
this.logService.log(node);
|
|
||||||
if (node && node.parentId === this.documentList.currentFolderId) {
|
if (node && node.parentId === this.documentList.currentFolderId) {
|
||||||
this.documentList.reload();
|
this.documentList.reload();
|
||||||
}
|
}
|
||||||
@@ -636,14 +631,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isCustomActionDisabled(node: MinimalNodeEntity): boolean {
|
|
||||||
return !(node && node.entry && node.entry.name === 'custom');
|
|
||||||
}
|
|
||||||
|
|
||||||
runCustomAction(event: any) {
|
|
||||||
this.logService.log(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
onUploadNewVersion(ev) {
|
onUploadNewVersion(ev) {
|
||||||
const contentEntry = ev.detail.data.node.entry;
|
const contentEntry = ev.detail.data.node.entry;
|
||||||
const showComments = this.showVersionComments;
|
const showComments = this.showVersionComments;
|
||||||
|
Reference in New Issue
Block a user