Lyrics load on mount
This commit is contained in:
@ -80801,8 +80801,6 @@ var MopidyMiddleware = function () {
|
||||
});
|
||||
});
|
||||
|
||||
console.log(subdirectories_with_images);
|
||||
|
||||
store.dispatch({
|
||||
type: 'MOPIDY_DIRECTORY_LOADED',
|
||||
directory: {
|
||||
@ -98723,8 +98721,8 @@ var KioskMode = function (_React$Component) {
|
||||
|
||||
this.setWindowTitle();
|
||||
|
||||
if (show_lyrics && current_track && genius_authorized && current_track && current_track.artists && !current_track.lyrics_results) {
|
||||
geniusActions.findTrackLyrics();
|
||||
if (show_lyrics && genius_authorized && current_track && current_track.artists && !current_track.lyrics_results) {
|
||||
geniusActions.findTrackLyrics(current_track);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -100,7 +100,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1581969189";
|
||||
var build = "1581969471";
|
||||
var version = "3.44.3";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -2373,8 +2373,6 @@ const MopidyMiddleware = (function () {
|
||||
}
|
||||
});
|
||||
|
||||
console.log(subdirectories_with_images);
|
||||
|
||||
store.dispatch({
|
||||
type: 'MOPIDY_DIRECTORY_LOADED',
|
||||
directory: {
|
||||
|
||||
@ -41,8 +41,8 @@ class KioskMode extends React.Component {
|
||||
} = this.props;
|
||||
this.setWindowTitle();
|
||||
|
||||
if (show_lyrics && current_track && genius_authorized && current_track && current_track.artists && !current_track.lyrics_results) {
|
||||
geniusActions.findTrackLyrics();
|
||||
if (show_lyrics && genius_authorized && current_track && current_track.artists && !current_track.lyrics_results) {
|
||||
geniusActions.findTrackLyrics(current_track);
|
||||
}
|
||||
}
|
||||
|
||||
@ -130,7 +130,7 @@ class KioskMode extends React.Component {
|
||||
</div>
|
||||
);
|
||||
} else if (!genius_authorized) {
|
||||
|
||||
|
||||
return (
|
||||
<p className="no-results">
|
||||
Want track lyrics? Authorize Genius under
|
||||
@ -138,7 +138,7 @@ class KioskMode extends React.Component {
|
||||
<Link to="/settings/genius" scrollTo="#services-menu">Settings</Link>.
|
||||
</p>
|
||||
);
|
||||
|
||||
|
||||
} else if (lyrics) {
|
||||
return (
|
||||
<LyricsScroller
|
||||
@ -170,7 +170,7 @@ class KioskMode extends React.Component {
|
||||
var images = [];
|
||||
}
|
||||
|
||||
const extraControls = (
|
||||
const extraControls = (
|
||||
<div className="control" onClick={this.toggleLyrics} style={show_lyrics ? { opacity: 1 } : {}}>
|
||||
<Icon name="queue_music" className={show_lyrics ? 'turquoise-text' : null} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user