fixes #125 now hitting return will make the folder for you

This commit is contained in:
Shane Harris
2021-08-12 12:28:16 +02:00
parent 3661e1fcb6
commit 0e679f5cbc
6 changed files with 27 additions and 19 deletions
@@ -12,7 +12,7 @@
<div *ngIf="!isConnected()">
<h4
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
No device connected...</h4>
No device connected yet...</h4>
</div>
<div *ngIf="isConnected()">
@@ -20,6 +20,7 @@
<h4
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
No files here...</h4>
<div class="grey-text">{{this.currentPath}}</div>
</div>
<div *ngFor="let file of files" class="vertical-align cursor"
@@ -74,7 +75,7 @@
<mz-modal-content>
Please enter a folder name.
<div class="input-field ">
<input id="devicePaste" type="text" [(ngModel)]="folderName" autofocus />
<input id="devicePaste" type="text" [(ngModel)]="folderName" autofocus (keyup)="autoReturn($event, makeFolder.bind(this))"/>
<label for="devicePaste">Folder Name</label>
</div>
</mz-modal-content>