Mercurial > hg > ugly-duckling
diff src/app/app.component.html @ 464:50f61d1945db
Hook up some buttons for navigating history (undo / redo). Some refactoring to allow for the audio player to get updated as a consequence of a state change (the audio related to the current top of the stack is used).
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 30 Jun 2017 14:01:22 +0100 |
parents | 7bb0bac6f8dc |
children | ae96db60f25c |
line wrap: on
line diff
--- a/src/app/app.component.html Fri Jun 30 13:59:51 2017 +0100 +++ b/src/app/app.component.html Fri Jun 30 14:01:22 2017 +0100 @@ -17,10 +17,15 @@ <ugly-audio-file-open (fileOpened)="onFileOpened($event); tray.close()" ></ugly-audio-file-open> - <!-- menu opens when trigger button is clicked --> <button md-icon-button (click)="tray.toggle()"> <md-icon>extension</md-icon> </button> + <button md-icon-button (click)="analyses.stepBack()"> + <md-icon>undo</md-icon> + </button> + <button md-icon-button (click)="analyses.stepForward()"> + <md-icon>redo</md-icon> + </button> </md-toolbar> </div> @@ -35,7 +40,6 @@ <ugly-notebook-feed (removeItem)="removeItem($event)" [analyses]="analyses.toIterable()" - [rootAudioUri]="rootAudioItem.uri" [onSeek]="onSeek"></ugly-notebook-feed> </div> </div>