Update components

This commit is contained in:
Daniel Supernault 2021-08-31 01:30:21 -06:00
parent e5e7839736
commit 942fdf5486
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
10 changed files with 267 additions and 159 deletions

View file

@ -981,20 +981,7 @@ export default {
}
},
beforeMount() {
let u = new URLSearchParams(window.location.search);
let forceMetro = localStorage.getItem('pf_metro_ui.exp.forceMetro') == 'true';
if(this.statusTemplate == 'text') {
this.layout = 'metro';
return;
}
if(u.has('ui') && u.get('ui') == 'moment' && this.layout != 'moment') {
this.layout = 'moment';
}
if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') {
this.layout = 'metro';
}
this.layout = 'metro';
},
mounted() {