Mercurial > hg > ugly-duckling
changeset 435:a1562ee60ed4
Close tray on file open and record.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 07 Jun 2017 15:34:26 +0100 |
parents | 0991af5c6eb2 |
children | d2af14e0b949 |
files | src/app/actions/action-tray.component.ts src/app/app.component.html |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/actions/action-tray.component.ts Wed Jun 07 15:30:15 2017 +0100 +++ b/src/app/actions/action-tray.component.ts Wed Jun 07 15:34:26 2017 +0100 @@ -55,4 +55,8 @@ toggle() { this.visibility = this.visibility === 'show' ? 'hide' : 'show'; } + + close() { + this.visibility = 'hide'; + } }
--- a/src/app/app.component.html Wed Jun 07 15:30:15 2017 +0100 +++ b/src/app/app.component.html Wed Jun 07 15:34:26 2017 +0100 @@ -7,7 +7,7 @@ <ugly-playback-control></ugly-playback-control> <ugly-recording-control - (finishedRecording)="onFileOpened($event)" + (finishedRecording)="onFileOpened($event); tray.close()" ></ugly-recording-control> <!-- This fills the remaining space of the current row --> @@ -15,7 +15,7 @@ <ugly-audio-file-open - (fileOpened)="onFileOpened($event)" + (fileOpened)="onFileOpened($event); tray.close()" ></ugly-audio-file-open> <!-- menu opens when trigger button is clicked --> <button md-icon-button (click)="tray.toggle()">