feature: set current viewport as default when open settings > dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
1d40c8aeb2
commit
f4a3de15ca
1 file changed
+8
@@ -65,5 +65,13 @@ import SettingsDashboardTabWidescreen from "@/components/settings/SettingsDashbo
|
||||
)
|
||||
export default class SettingsDashboardTab extends Mixins(BaseMixin) {
|
||||
private viewport = 'desktop'
|
||||
|
||||
mounted() {
|
||||
if (this.isMobile) this.viewport = 'mobile'
|
||||
else if (this.isTablet) this.viewport = 'tablet'
|
||||
else if (this.isDesktop) this.viewport = 'desktop'
|
||||
else if (this.isWidescreen) this.viewport = 'widescreen'
|
||||
else this.viewport = 'desktop'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user