closes #71 with the file path fix for the file browser.
This commit is contained in:
@@ -22,3 +22,10 @@
|
||||
margin-right: 0.5em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
.top-bar{
|
||||
direction: rtl;
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div *ngIf="isConnected()" class="top-bar">
|
||||
<nav class="pink lighten-2 breadcrumb-wrapper ">
|
||||
<div class="nav-wrapper container">
|
||||
<div class="col s12">
|
||||
<div class="col s12 truncate">
|
||||
<a *ngFor="let breadcrumb of breadcrumbs; let i = index" href="javascript:void(0)" class="breadcrumb"
|
||||
(click)="open('/'+breadcrumb.path)">{{breadcrumb.name}}<span *ngIf="i === breadcrumbs.length-1 && folderSize"> ({{folderSize}})</span> </a>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
||||
import { AdbClientService, ConnectionStatus } from '../adb-client.service';
|
||||
import { AppService } from '../app.service';
|
||||
import { LoadingSpinnerService } from '../loading-spinner.service';
|
||||
@@ -30,7 +30,7 @@ export class FilesComponent implements OnInit {
|
||||
filesToBeSaved: FileFolderListing[];
|
||||
filesToBeDeleted: FileFolderListing[];
|
||||
breadcrumbs: BreadcrumbListing[] = [];
|
||||
isOpen: boolean = false;
|
||||
isOpen = false;
|
||||
currentPath: string;
|
||||
folderName: string;
|
||||
folderSize: string;
|
||||
|
||||
@@ -101,6 +101,7 @@ export class HeaderComponent implements OnInit {
|
||||
public processService: ProcessBucketService
|
||||
) {
|
||||
this.osPlatform = this.appService.os.platform();
|
||||
console.log('Platform: ' + this.osPlatform);
|
||||
this.resetFavourites('browserFavourites');
|
||||
this.resetFavourites('fileFavourites');
|
||||
this.resetFavourites('commandFavourites');
|
||||
|
||||
Reference in New Issue
Block a user