diff --git a/src/components/modals/main/settings/sections/background/Background.jsx b/src/components/modals/main/settings/sections/background/Background.jsx index f0896ed7..613dd502 100644 --- a/src/components/modals/main/settings/sections/background/Background.jsx +++ b/src/components/modals/main/settings/sections/background/Background.jsx @@ -90,11 +90,19 @@ export default class BackgroundSettings extends PureComponent { const APISettings = ( <> this.setState({ backgroundAPI: e })}/> - - {this.state.backgroundCategories.map((category) => ( - {category.charAt(0).toUpperCase() + category.slice(1)} - ))} - + {this.state.backgroundCategories[0] === getMessage('modals.main.loading') ? + <> + + {getMessage('modals.main.loading')} + {getMessage('modals.main.loading')} + + : + + {this.state.backgroundCategories.map((category) => ( + {category.charAt(0).toUpperCase() + category.slice(1)} + ))} + + } diff --git a/src/modules/helpers/marketplace.js b/src/modules/helpers/marketplace.js index e5021891..0eb763dd 100644 --- a/src/modules/helpers/marketplace.js +++ b/src/modules/helpers/marketplace.js @@ -48,6 +48,7 @@ export function install(type, input, sideload) { localStorage.setItem('quoteType', 'quote_pack'); EventBus.dispatch('refresh', 'quote'); break; + default: break; } @@ -78,6 +79,7 @@ export function uninstall(type, name) { }); showReminder(); break; + case 'quotes': localStorage.removeItem('quote_packs'); localStorage.removeItem('quoteAPI'); @@ -85,12 +87,14 @@ export function uninstall(type, name) { localStorage.removeItem('oldQuoteType'); EventBus.dispatch('refresh', 'marketplacequoteuninstall'); break; + case 'photos': localStorage.removeItem('photo_packs'); localStorage.setItem('backgroundType', localStorage.getItem('oldBackgroundType')); localStorage.removeItem('oldBackgroundType'); EventBus.dispatch('refresh', 'marketplacebackgrounduninstall'); break; + default: break; }