mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-22 21:25:00 +02:00
💫 Hide loader, if still visible
This commit is contained in:
parent
b00c9ad902
commit
b532e168fe
@ -53,8 +53,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/* Determine if splash screen should be shown */
|
/* Determine if splash screen should be shown */
|
||||||
shouldShowSplash() {
|
shouldShowSplash() {
|
||||||
return (this.visibleComponents || defaultVisibleComponents).splashScreen
|
return (this.visibleComponents || defaultVisibleComponents).splashScreen;
|
||||||
|| !localStorage[localStorageKeys.HIDE_WELCOME_BANNER];
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -107,6 +106,10 @@ export default {
|
|||||||
this.$i18n.locale = language;
|
this.$i18n.locale = language;
|
||||||
document.getElementsByTagName('html')[0].setAttribute('lang', language);
|
document.getElementsByTagName('html')[0].setAttribute('lang', language);
|
||||||
},
|
},
|
||||||
|
hideLoader() {
|
||||||
|
const loader = document.getElementById('loader');
|
||||||
|
if (loader) loader.style.display = 'none';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
/* When component mounted, hide splash and initiate the injection of custom styles */
|
/* When component mounted, hide splash and initiate the injection of custom styles */
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -115,6 +118,7 @@ export default {
|
|||||||
if (this.appConfig.customCss) {
|
if (this.appConfig.customCss) {
|
||||||
const cleanedCss = this.appConfig.customCss.replace(/<\/?[^>]+(>|$)/g, '');
|
const cleanedCss = this.appConfig.customCss.replace(/<\/?[^>]+(>|$)/g, '');
|
||||||
this.injectCustomStyles(cleanedCss);
|
this.injectCustomStyles(cleanedCss);
|
||||||
|
this.hideLoader();
|
||||||
}
|
}
|
||||||
welcomeMsg();
|
welcomeMsg();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user