Verified Commit 6b5d4d45 authored by Alex ORLUC's avatar Alex ORLUC

FEAT #11641 TIME 0:20 move add root folder

parent 51466ffe
......@@ -115,4 +115,13 @@ button:disabled {
opacity: 0.5;
font-size: 12px;
color: rgb(102, 102, 102);
}
.folderTools {
display: flex;
justify-content: center;
align-items: baseline;
.filter {
flex: 1;
}
}
\ No newline at end of file
......@@ -445,4 +445,8 @@ export class FolderTreeComponent implements OnInit {
}),
).subscribe();
}
goTo(folder: any) {
this.router.navigate(["/folders/" + folder.id]);
}
}
......@@ -4,6 +4,5 @@
<i class="fa fa-folder"></i>&nbsp;{{lang.folders}}
</mat-panel-title>
</mat-expansion-panel-header>
<plugin-autocomplete [size]="'small'" [labelPlaceholder]="lang.searchFolder" [routeDatas]="['/rest/autocomplete/folders']" [targetSearchKey]="'idToDisplay'" (triggerEvent)="goTo($event)"></plugin-autocomplete>
<folder-tree #folderTree [selectedId]="id" (refreshDocList)="refreshDocList()"></folder-tree>
</mat-expansion-panel>
import { Component, OnInit, Input, ViewChild, Output, EventEmitter } from '@angular/core';
import { LANG } from '../../translate.component';
import { FolderTreeComponent } from '../folder-tree.component';
import { Router } from '@angular/router';
declare function $j(selector: any): any;
......@@ -19,7 +18,7 @@ export class PanelFolderComponent implements OnInit {
@Output('refreshEvent') refreshEvent = new EventEmitter<string>();
constructor(private router: Router) { }
constructor() { }
ngOnInit(): void { }
......@@ -42,8 +41,4 @@ export class PanelFolderComponent implements OnInit {
refreshFoldersTree() {
this.folderTree.getFolders();
}
goTo(folder: any) {
this.router.navigate(["/folders/" + folder.id]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment