2 <div class="col-sm-4 pr-0">
4 <div class="card-header">
6 [class.disabled]="loadingIndicator"
7 class="btn btn-light pull-right"
8 (click)="refreshAllDirectories()">
9 <i [ngClass]="[icons.large, icons.refresh]"
10 [class.fa-spin]="loadingIndicator"></i>
13 <div class="card-body">
15 ng2-tree can't be used here as it cannot handle the reloading of all nodes
16 without loosing all states of the current tree. The difference of both tree components is
17 that ng2-tree is defined and configured by each node where as angular-tree
18 is configured by a tree structure and consist of nodes that mainly hold data.
19 Angular-tree is a lot better for dynamically loaded trees. The downside is that it's not
20 possible to set individual icons for each node.
22 <tree-root *ngIf="nodes"
24 [options]="treeOptions">
25 <ng-template #loadingTemplate>
26 <i [ngClass]="[icons.spinner, icons.spin]"></i>
32 <!-- Selection details -->
33 <div class="col-sm-8 metadata"
36 <div class="card-header">
37 {{ selectedDir.path }}
39 <div class="card-body">
40 <ng-container *ngIf="selectedDir.path !== '/'">
41 <legend i18n>Quotas</legend>
42 <cd-table [data]="settings"
43 [columns]="quota.columns"
46 selectionType="single"
47 (updateSelection)="quota.updateSelection($event)"
48 [onlyActionHeader]="true"
50 [forceIdentifier]="true"
52 <cd-table-actions class="only-table-actions"
53 [permission]="permission"
54 [selection]="quota.selection"
55 [tableActions]="quota.tableActions">
60 <legend i18n>Snapshots</legend>
61 <cd-table [data]="selectedDir.snapshots"
62 [columns]="snapshot.columns"
64 forceIdentifier="true"
65 selectionType="multiClick"
66 (updateSelection)="snapshot.updateSelection($event)">
67 <cd-table-actions class="table-actions"
68 [permission]="permission"
69 [selection]="snapshot.selection"
70 [tableActions]="snapshot.tableActions">
81 <span class="quota-origin"
82 (click)="selectOrigin(value)">{{value}}</span>