|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
(click)="navigateBack(rec)"
|
|
|
|
|
>{{ rec.name }} /</button>
|
|
|
|
|
<ion-input
|
|
|
|
|
[readonly]="readonly"
|
|
|
|
|
[readonly]="readonly || isLoading"
|
|
|
|
|
[(ngModel)]="fileBoxName"
|
|
|
|
|
(change)="onRecordNameChange($event)"
|
|
|
|
|
style="flex: 1; font-size: 15pt;"
|
|
|
|
@ -23,9 +23,9 @@
|
|
|
|
|
><i class="fa fa-times"></i></button>
|
|
|
|
|
</div>
|
|
|
|
|
<ion-buttons *ngIf="!readonly" style="flex-wrap: wrap;">
|
|
|
|
|
<ion-button (click)="onActionClick('folder-add')"><i class="fa fa-folder-plus"></i> Folder</ion-button>
|
|
|
|
|
<ion-button (click)="onUploadFilesClick($event)"><i class="fa fa-upload"></i> Upload Files</ion-button>
|
|
|
|
|
<ion-button (click)="openFileBox()" *ngIf="!fullPage"><i class="fa fa-external-link-alt"></i> Open</ion-button>
|
|
|
|
|
<ion-button [disabled]="isLoading" (click)="onActionClick('folder-add')"><i class="fa fa-folder-plus"></i> Folder</ion-button>
|
|
|
|
|
<ion-button [disabled]="isLoading" (click)="onUploadFilesClick($event)"><i class="fa fa-upload"></i> Upload Files</ion-button>
|
|
|
|
|
<ion-button [disabled]="isLoading" (click)="openFileBox()" *ngIf="!fullPage"><i class="fa fa-external-link-alt"></i> Open</ion-button>
|
|
|
|
|
|
|
|
|
|
<div class="buffer"></div>
|
|
|
|
|
|
|
|
|
@ -34,6 +34,7 @@
|
|
|
|
|
<ion-input
|
|
|
|
|
placeholder="Quick filter..."
|
|
|
|
|
(ionChange)="onQuickFilterChange($event)"
|
|
|
|
|
[readonly]="isLoading"
|
|
|
|
|
></ion-input>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -41,8 +42,9 @@
|
|
|
|
|
</ion-buttons>
|
|
|
|
|
</ion-toolbar>
|
|
|
|
|
<div class="content-wrapper" (contextmenu)="onSurfaceContextMenu($event)">
|
|
|
|
|
<div *ngIf="!items || !items.length" class="empty-text" (contextmenu)="onSurfaceContextMenu($event)">No files or folders.</div>
|
|
|
|
|
<div *ngIf="items && items.length" class="folders">
|
|
|
|
|
<div *ngIf="!isLoading && (!items || !items.length)" class="empty-text" (contextmenu)="onSurfaceContextMenu($event)">No files or folders.</div>
|
|
|
|
|
<div *ngIf="isLoading" class="empty-text">Loading...</div>
|
|
|
|
|
<div *ngIf="!isLoading && items && items.length" class="folders">
|
|
|
|
|
<ng-container *ngFor="let item of (visibleFilterItems ? visibleFilterItems : items)">
|
|
|
|
|
<div class="folder item" *ngIf="item.type === 'folder'" (contextmenu)="onItemContextMenu(item, $event)" (dblclick)="onItemActivate(item)">
|
|
|
|
|
<div class="icon folder"><i class="fa fa-folder"></i></div>
|
|
|
|
@ -50,7 +52,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="items && items.length" class="files">
|
|
|
|
|
<div *ngIf="!isLoading && items && items.length" class="files">
|
|
|
|
|
<ng-container *ngFor="let item of (visibleFilterItems ? visibleFilterItems : items)">
|
|
|
|
|
<div class="folder item" *ngIf="item.type === 'file'" (contextmenu)="onItemContextMenu(item, $event)" (dblclick)="onItemActivate(item)">
|
|
|
|
|
<div [ngClass]="'icon ' + item.category"><i [ngClass]="categoryIcons[item.category]"></i></div>
|
|
|
|
|