Skip to content

Commit

Permalink
Revert "#37 and LUSHDigital/lrpi_player#137 - error message is now di…
Browse files Browse the repository at this point in the history
…splayed instead of an infinitely spinning wheel (#40)"

This reverts commit 907dae6.
  • Loading branch information
InBrewJ authored Dec 16, 2019
1 parent 907dae6 commit c969b91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ html {
font-size: 140%;
}

.pair-button:hover, .home-button:hover {
cursor: pointer;
.pair-button:hover {
cursor: pointer;
}

p.slave-prompt {
Expand All @@ -21,9 +21,4 @@ p.slave-prompt {
.pair-button button {
margin-left: 0.3em;
font-size: 110%;
}

.home-button {
float: right;
padding-right: 1em;
}
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
<p class="slave-prompt">
<i>(its IP address is {{masterIp}})</i>
</p>

</ng-template>
4 changes: 1 addition & 3 deletions src/app/pages/track-selector/track-selector.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class TrackSelectorComponent implements OnInit {
console.log('In the playlist processor');

let data: any = d;
this.loading = false;

console.log('tracks: ', data, ' length: ', data.length);

Expand All @@ -97,7 +98,6 @@ export class TrackSelectorComponent implements OnInit {

if (data.length === undefined) {
this.errorResponse['message'] = 'Syncing may not have completed yet. Alternatively, is the usb stick plugged in?'
this.loading = false;
this.serverData = null;
return;
}
Expand All @@ -122,7 +122,6 @@ export class TrackSelectorComponent implements OnInit {
}

console.log('playlist? : ', isPlaylist);
this.loading = false;

this.serverData = of(
data
Expand All @@ -132,7 +131,6 @@ export class TrackSelectorComponent implements OnInit {
(err: any) => {
console.log('error', err);
this.errorResponse = err;
this.loading = false;
this.errorResponse['message'] = 'Something is wrong...'
this.router.navigate([`/tracks`]);
}
Expand Down

0 comments on commit c969b91

Please sign in to comment.