mirror of
https://github.com/mue/mue.git
synced 2026-07-13 04:02:32 +02:00
fix: marketplace background settings, reset button, intervals
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
.reset {
|
||||
@extend %settingsButton;
|
||||
|
||||
margin-left: 5px;
|
||||
background-color: map-get($button-colours, 'reset');
|
||||
border: 2px solid map-get($button-colours, 'reset');
|
||||
|
||||
|
||||
@@ -158,6 +158,10 @@ export default class BackgroundSettings extends React.PureComponent {
|
||||
case 'colour': backgroundSettings = <ColourSettings/>; break;
|
||||
default: backgroundSettings = APISettings; break;
|
||||
}
|
||||
|
||||
if (localStorage.getItem('photo_packs') && this.state.backgroundType !== 'custom' && this.state.backgroundType !== 'colour' && this.state.backgroundType !== 'api') {
|
||||
backgroundSettings = null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -349,7 +349,7 @@ export default class Background extends React.PureComponent {
|
||||
}
|
||||
|
||||
const interval = localStorage.getItem('backgroundchange');
|
||||
if (interval && interval !== 'refresh') {
|
||||
if (interval && interval !== 'refresh' && localStorage.getItem('backgroundType') === 'api') {
|
||||
Interval(() => {
|
||||
try {
|
||||
document.getElementById('backgroundImage').classList.remove('fade-in');
|
||||
|
||||
@@ -224,7 +224,7 @@ export default class Quote extends React.PureComponent {
|
||||
});
|
||||
|
||||
const interval = localStorage.getItem('quotechange');
|
||||
if (interval && interval !== 'refresh') {
|
||||
if (interval && interval !== 'refresh' && localStorage.getItem('quoteType') === 'api') {
|
||||
Interval(() => {
|
||||
this.setZoom();
|
||||
this.getQuote();
|
||||
|
||||
Reference in New Issue
Block a user