Skip to content
Snippets Groups Projects
Verified Commit a084a3a4 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #11291 TIME 0:20 fix css new folder + var lang + set init countRes

parent ba666608
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div style="height:90%;overflow:auto;position:absolute;width:100%;"> <div style="height:90%;overflow:auto;position:absolute;width:100%;">
<table #tableBasketListSort="matSort" cdkDropList id="folder-list" <table #tableBasketListSort="matSort" cdkDropList id="folder-list"
[cdkDropListConnectedTo]="listTodrag()" [cdkDropListData]="data" [cdkDropListConnectedTo]="listTodrag()" [cdkDropListData]="data"
[cdkDropListDisabled]="dragInit" mat-table [dataSource]="data" matSort matSortActive="res_id" [cdkDropListDisabled]="dragInit || appService.getViewMode()" mat-table [dataSource]="data" matSort matSortActive="res_id"
matSortDisableClear matSortDirection="asc" style="width:100%;"> matSortDisableClear matSortDirection="asc" style="width:100%;">
<ng-container matColumnDef="res_id"> <ng-container matColumnDef="res_id">
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
(mouseleave)="hideAction(node)" (click)="selectFolder(node)"> (mouseleave)="hideAction(node)" (click)="selectFolder(node)">
<span style="width: 90%;overflow: hidden;text-overflow: ellipsis;"> <span style="width: 90%;overflow: hidden;text-overflow: ellipsis;">
<span class="treeLabel" [title]="node.label" [class.drag]="node.drag"> <span class="treeLabel" [title]="node.label" [class.drag]="node.drag">
{{node.label}} <i class="fa fa-users private" *ngIf="node.public" title="{{lang.sharedFolder}}"></i> <i class="fa fa-users private" *ngIf="node.public" title="{{lang.sharedFolder}}"></i> {{node.label}}
</span> </span>
</span> </span>
<button mat-icon-button [matMenuTriggerFor]="menu" (click)="$event.stopPropagation();showAction(node);checkRights(node);" <button mat-icon-button [matMenuTriggerFor]="menu" (click)="$event.stopPropagation();showAction(node);checkRights(node);"
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
</mat-menu> </mat-menu>
</a> </a>
</mat-tree-node> </mat-tree-node>
<mat-tree-node *matTreeNodeDef="let node; when: hasNoContent" matTreeNodePadding matTreeNodePaddingIndent="45px"> <mat-tree-node *matTreeNodeDef="let node; when: hasNoContent" matTreeNodePadding matTreeNodePaddingIndent="0px">
<form> <form>
<mat-form-field floatLabel="never" style="width: 100%;"> <mat-form-field floatLabel="never" style="width: 100%;padding-left: 10px;padding-right: 10px;">
<input matInput id="itemValue" #itemValue placeholder="{{lang.addFolder}}..."> <input matInput id="itemValue" #itemValue placeholder="{{lang.addFolder}}...">
<button type="submit" matSuffix mat-icon-button (click)="saveNode(node, itemValue.value)" <button type="submit" matSuffix mat-icon-button (click)="saveNode(node, itemValue.value)"
[disabled]="itemValue.value === ''"> [disabled]="itemValue.value === ''">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
(mouseenter)="showAction(node)" (click)="selectFolder(node)"> (mouseenter)="showAction(node)" (click)="selectFolder(node)">
<span style="width: 90%;overflow: hidden;text-overflow: ellipsis;"> <span style="width: 90%;overflow: hidden;text-overflow: ellipsis;">
<span class="treeLabel" [title]="node.label" [class.drag]="node.drag"> <span class="treeLabel" [title]="node.label" [class.drag]="node.drag">
{{node.label}} <i class="fa fa-users private" *ngIf="node.public" title="{{lang.sharedFolder}}"></i> <i class="fa fa-users private" *ngIf="node.public" title="{{lang.sharedFolder}}"></i> {{node.label}}
</span> </span>
</span> </span>
<button mat-icon-button [matMenuTriggerFor]="menu" (click)="$event.stopPropagation();checkRights(node);" [disabled]="!node.showAction" style="position: absolute;right:0px;"> <button mat-icon-button [matMenuTriggerFor]="menu" (click)="$event.stopPropagation();checkRights(node);" [disabled]="!node.showAction" style="position: absolute;right:0px;">
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<mat-list-item role="listitem"> <mat-list-item role="listitem">
<form> <form>
<mat-form-field floatLabel="never" style="width: 100%;"> <mat-form-field floatLabel="never" style="width: 100%;">
<input matInput id="itemValue" #itemValue placeholder="{{lang.addFolder}} racine..."> <input matInput id="itemValue" #itemValue placeholder="{{lang.addRootFolder}}">
<button type="submit" matSuffix mat-icon-button (click)="createRoot(itemValue.value);createRootNode = !createRootNode" <button type="submit" matSuffix mat-icon-button (click)="createRoot(itemValue.value);createRootNode = !createRootNode"
[disabled]="itemValue.value === ''"> [disabled]="itemValue.value === ''">
<mat-icon class="fa fa-check" color="accent" [title]="lang.add"></mat-icon> <mat-icon class="fa fa-check" color="accent" [title]="lang.add"></mat-icon>
......
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
color: rgb(102, 102, 102); color: rgb(102, 102, 102);
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
height: 30px; height: 40px;
width: 90%; width: 90%;
} }
.mat-tree-node { .mat-tree-node {
min-height: 0px; min-height: 0px;
height: 30px; height: 40px;
::ng-deep.mat-list-item-content { ::ng-deep.mat-list-item-content {
padding-left: 0px; padding-left: 0px;
...@@ -80,12 +80,15 @@ form { ...@@ -80,12 +80,15 @@ form {
} }
.more { .more {
width: 100%;
::ng-deep.mat-list-item-content { ::ng-deep.mat-list-item-content {
justify-content: center; justify-content: center;
} }
} }
.private { .private {
margin-left: 5px;
color: $secondary; color: $secondary;
} }
......
...@@ -255,6 +255,7 @@ export class FolderTreeComponent implements OnInit { ...@@ -255,6 +255,7 @@ export class FolderTreeComponent implements OnInit {
const nestedNode = this.flatNodeMap.get(node); const nestedNode = this.flatNodeMap.get(node);
nestedNode.label = value; nestedNode.label = value;
nestedNode.id = data.folder; nestedNode.id = data.folder;
nestedNode.countResources = 0;
this.dataChange.next(this.data); this.dataChange.next(this.data);
this.treeControl.collapseAll(); this.treeControl.collapseAll();
this.openTree(nestedNode.id); this.openTree(nestedNode.id);
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
<div style="height:90%;overflow:auto;position:absolute;width:100%;"> <div style="height:90%;overflow:auto;position:absolute;width:100%;">
<table cdkDropList id="document-list" [cdkDropListConnectedTo]="listTodrag()" [cdkDropListData]="data" #tableBasketListSort="matSort" mat-table [dataSource]="data" matSort <table cdkDropList id="document-list" [cdkDropListConnectedTo]="listTodrag()" [cdkDropListData]="data" #tableBasketListSort="matSort" mat-table [dataSource]="data" matSort
matSortActive="res_id" matSortDisableClear matSortDirection="asc" style="width:100%;" [cdkDropListDisabled]="dragInit"> matSortActive="res_id" matSortDisableClear matSortDirection="asc" style="width:100%;" [cdkDropListDisabled]="dragInit || appService.getViewMode()">
<ng-container matColumnDef="res_id"> <ng-container matColumnDef="res_id">
<td mat-cell *matCellDef="let row" <td mat-cell *matCellDef="let row"
......
...@@ -1063,4 +1063,5 @@ export const LANG_EN = { ...@@ -1063,4 +1063,5 @@ export const LANG_EN = {
"more" : "More", "more" : "More",
"less" : "Less", "less" : "Less",
"actionsAlt": "Actions", "actionsAlt": "Actions",
"addRootFolder": "Add root folder",
}; };
...@@ -1100,4 +1100,5 @@ export const LANG_FR = { ...@@ -1100,4 +1100,5 @@ export const LANG_FR = {
"more" : "Plus", "more" : "Plus",
"less" : "Moins", "less" : "Moins",
"actionsAlt": "Actions", "actionsAlt": "Actions",
"addRootFolder": "Nouveau dossier racine",
}; };
...@@ -1089,4 +1089,5 @@ export const LANG_NL = { ...@@ -1089,4 +1089,5 @@ export const LANG_NL = {
"more" : "More", //_TO_TRANSLATE "more" : "More", //_TO_TRANSLATE
"less" : "Less", //_TO_TRANSLATE "less" : "Less", //_TO_TRANSLATE
"actionsAlt": "Actions", //_TO_TRANSLATE "actionsAlt": "Actions", //_TO_TRANSLATE
"addRootFolder": "Add root folder", //_TO_TRANSLATE
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment