[ci:force] remove logger and custom action

This commit is contained in:
Denys Vuika
2023-07-31 17:51:56 -04:00
parent 14c1d8cebe
commit 7e1fd6627d
2 changed files with 0 additions and 20 deletions

View File

@@ -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!"

View File

@@ -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;